From: Zac Medico Date: Sat, 22 Jul 2006 23:37:23 +0000 (-0000) Subject: Make xsplit() return False on failure and True on success for bug #141445. X-Git-Tag: v2.1.1~149 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=594ac89b6dffd87d0884d6ce1c0ab2b9beaab392;p=portage.git Make xsplit() return False on failure and True on success for bug #141445. svn path=/main/trunk/; revision=4006 --- diff --git a/pym/xpak.py b/pym/xpak.py index 46cdfd8df..9c2907ff9 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":