projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad71b34
)
dohtml: restore behavior noted in bug #425214
v2.2.4
author
Zac Medico
<zmedico@gentoo.org>
Fri, 13 Sep 2013 03:06:50 +0000
(20:06 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 13 Sep 2013 03:06:50 +0000
(20:06 -0700)
This goes along with commit
2110ec6ed42fc306d5c25cbf970d013ff2a226fd
,
adding support for trailing /. as well, since it's used at least by
distutils-r1.eclass.
bin/dohtml.py
patch
|
blob
|
history
diff --git
a/bin/dohtml.py
b/bin/dohtml.py
index 500c523556e3542e3ed22c998433013b62ea018f..f98557f6179f1b996a2e09bbdd5dda753f639e10 100755
(executable)
--- a/
bin/dohtml.py
+++ b/
bin/dohtml.py
@@
-204,9
+204,10
@@
def main():
print("Allowed files :", options.allowed_files)
success = False
+ endswith_slash = (os.sep, os.sep + ".")
for x in args:
- trailing_slash = x
[-1:] == os.sep
+ trailing_slash = x
.endswith(endswith_slash)
x = normalize_path(x)
if trailing_slash:
# Modify behavior of basename and dirname