From cb1ad77ff926488cd975bf31e357373ad9c19981 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 17 Aug 2009 04:33:42 +0000 Subject: [PATCH] Print a warning when nonexistent files have been passed to dohtml. svn path=/main/trunk/; revision=14075 --- bin/ebuild-helpers/dohtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/ebuild-helpers/dohtml b/bin/ebuild-helpers/dohtml index 1c707bdfd..d4f245ba2 100755 --- a/bin/ebuild-helpers/dohtml +++ b/bin/ebuild-helpers/dohtml @@ -59,7 +59,9 @@ def install(basename, dirname, options, prefix=""): else: destdir = options.D + "usr/share/doc/" + options.PF + "/html/" + options.doc_prefix + "/" + prefix - if os.path.isfile(fullpath): + if not os.path.exists(fullpath): + sys.stderr.write("!!! dohtml: %s does not exist\n" % fullpath) + elif os.path.isfile(fullpath): ext = os.path.splitext(basename)[1] if (len(ext) and ext[1:] in options.allowed_exts) or basename in options.allowed_files: dodir(destdir) -- 2.26.2