From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 17 Aug 2009 04:33:42 +0000 (-0000) Subject: Print a warning when nonexistent files have been passed to dohtml. X-Git-Tag: v2.2_rc39~47 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb1ad77ff926488cd975bf31e357373ad9c19981;p=portage.git Print a warning when nonexistent files have been passed to dohtml. svn path=/main/trunk/; revision=14075 --- 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)