diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-17 04:33:42 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2009-08-17 04:33:42 +0000 |
commit | cb1ad77ff926488cd975bf31e357373ad9c19981 (patch) | |
tree | 51f63d4e9b7b5da0a7944c5fd17470c7a31bb36b | |
parent | eb948a257299d0a4dc104ca02e7eee412c7acebe (diff) | |
download | portage-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-x | bin/ebuild-helpers/dohtml | 4 |
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) |