summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-10-06 15:40:38 +0000
committerMarius Mauch <genone@gentoo.org>2007-10-06 15:40:38 +0000
commita44cc3f7efbc1dfc5abed527a3bf752cd51a5b5c (patch)
tree6c72df8916f08be80448ade68875510d1d7ccabb
parentb24c867e8712381dec90525e8afebe0dfc6ba8bf (diff)
downloadportage-a44cc3f7efbc1dfc5abed527a3bf752cd51a5b5c.tar.gz
portage-a44cc3f7efbc1dfc5abed527a3bf752cd51a5b5c.tar.bz2
portage-a44cc3f7efbc1dfc5abed527a3bf752cd51a5b5c.zip
let dohtml handle weird filenames, patch by TGL (bug #171272)
svn path=/main/trunk/; revision=7983
-rwxr-xr-xbin/dohtml12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/dohtml b/bin/dohtml
index 5087ca430..b94629a76 100755
--- a/bin/dohtml
+++ b/bin/dohtml
@@ -34,17 +34,17 @@ import sys
import types
def dodir(path):
- os.system("install -d '%s'" % path)
+ os.spawnlp(os.P_WAIT, "install", "install", "-d", path)
def dofile(src,dst):
-
- os.system("install -m0644 '%s' '%s'" % (src, dst))
+ os.spawnlp(os.P_WAIT, "install", "install", "-m0644", src, dst)
def install(basename, dirname, options, prefix=""):
-
fullpath = basename
- if prefix: fullpath = prefix + "/" + fullpath
- if dirname: fullpath = dirname + "/" + fullpath
+ if prefix:
+ fullpath = prefix + "/" + fullpath
+ if dirname:
+ fullpath = dirname + "/" + fullpath
if options.DOCDESTTREE:
destdir = options.D + "usr/share/doc/" + options.PF + "/" + options.DOCDESTTREE + "/" + options.doc_prefix + "/" + prefix