diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-12 05:35:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-12 05:35:25 +0000 |
commit | c3cd9d603edffed4b2b183875c2aa29ac2af6244 (patch) | |
tree | 17854f794e23c865aa3a03f9c2d0932e119a4206 /bin/dohtml | |
parent | bd602af46ef03f9e8b829cde4d617fc496aa1474 (diff) | |
download | portage-c3cd9d603edffed4b2b183875c2aa29ac2af6244.tar.gz portage-c3cd9d603edffed4b2b183875c2aa29ac2af6244.tar.bz2 portage-c3cd9d603edffed4b2b183875c2aa29ac2af6244.zip |
let dohtml handle weird filenames, patch by TGL
(bug #171272) (trunk r7983)
svn path=/main/branches/2.1.2/; revision=8057
Diffstat (limited to 'bin/dohtml')
-rwxr-xr-x | bin/dohtml | 12 |
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 |