summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-22 23:37:23 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-22 23:37:23 +0000
commit594ac89b6dffd87d0884d6ce1c0ab2b9beaab392 (patch)
tree521c8ee136e3c9c7a9a762119024176cacf8e0e8 /pym
parentMove best_match_to_list, match_from_list, and match_to_list from the core por... (diff)
downloadportage-idfetch-594ac89b6dffd87d0884d6ce1c0ab2b9beaab392.tar.gz
portage-idfetch-594ac89b6dffd87d0884d6ce1c0ab2b9beaab392.tar.bz2
portage-idfetch-594ac89b6dffd87d0884d6ce1c0ab2b9beaab392.zip
Make xsplit() return False on failure and True on success for bug #141445.
svn path=/main/trunk/; revision=4006
Diffstat (limited to 'pym')
-rw-r--r--pym/xpak.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/xpak.py b/pym/xpak.py
index 46cdfd8d..9c2907ff 100644
--- a/pym/xpak.py
+++ b/pym/xpak.py
@@ -110,7 +110,7 @@ def xsplit(infile):
splits = xsplit_mem(mydat)
if not splits:
- return
+ return False
myfile=open(infile+".index","w")
myfile.write(splits[0])
@@ -118,7 +118,7 @@ def xsplit(infile):
myfile=open(infile+".dat","w")
myfile.write(splits[1])
myfile.close()
- return
+ return True
def xsplit_mem(mydat):
if mydat[0:8]!="XPAKPACK":