diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-10-06 01:25:46 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-10-06 01:25:46 +0000 |
commit | d6af3cdb55d7a894a89ca2bcf5a08cb85deb2981 (patch) | |
tree | adf2587347694f04171c17a1f415972b7bb1f996 | |
parent | ad62bd2619d60753a669bd8cd1581fb9da35d535 (diff) | |
download | portage-d6af3cdb55d7a894a89ca2bcf5a08cb85deb2981.tar.gz portage-d6af3cdb55d7a894a89ca2bcf5a08cb85deb2981.tar.bz2 portage-d6af3cdb55d7a894a89ca2bcf5a08cb85deb2981.zip |
For bug #150163, remove unnecessary validation of new_protect_filename() parameters.
svn path=/main/trunk/; revision=4601
-rw-r--r-- | pym/portage_util.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/pym/portage_util.py b/pym/portage_util.py index 9d1bb84c2..c329bc225 100644 --- 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 |