projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad62bd2
)
For bug #150163, remove unnecessary validation of new_protect_filename() parameters.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 6 Oct 2006 01:25:46 +0000
(
01:25
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 6 Oct 2006 01:25:46 +0000
(
01:25
-0000)
svn path=/main/trunk/; revision=4601
pym/portage_util.py
patch
|
blob
|
history
diff --git
a/pym/portage_util.py
b/pym/portage_util.py
index 9d1bb84c21acda01dbeab8cf75c79544dd3dd795..c329bc225f01fb6e8edbbae382e7c3e746de1b6b 100644
(file)
--- a/
pym/portage_util.py
+++ b/
pym/portage_util.py
@@
-905,10
+905,6
@@
def new_protect_filename(mydest, newmd5=None):
prot_num = -1
last_pfile = ""
- if len(mydest) == 0:
- raise ValueError, "Empty path provided where a filename is required"
- if mydest[-1] == os.path.sep: # XXX add better directory checking
- raise ValueError, "Directory provided but this function requires a filename"
if not os.path.exists(mydest):
return mydest