summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-17 04:33:42 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-17 04:33:42 +0000
commitcb1ad77ff926488cd975bf31e357373ad9c19981 (patch)
tree51f63d4e9b7b5da0a7944c5fd17470c7a31bb36b
parenteb948a257299d0a4dc104ca02e7eee412c7acebe (diff)
downloadportage-cb1ad77ff926488cd975bf31e357373ad9c19981.tar.gz
portage-cb1ad77ff926488cd975bf31e357373ad9c19981.tar.bz2
portage-cb1ad77ff926488cd975bf31e357373ad9c19981.zip
Print a warning when nonexistent files have been passed to dohtml.
svn path=/main/trunk/; revision=14075
-rwxr-xr-xbin/ebuild-helpers/dohtml4
1 files changed, 3 insertions, 1 deletions
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)