projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
052b874
)
- always keep the non compressed version around
author
solar
<solar@gentoo.org>
Sun, 29 Apr 2007 03:15:05 +0000
(
03:15
-0000)
committer
solar
<solar@gentoo.org>
Sun, 29 Apr 2007 03:15:05 +0000
(
03:15
-0000)
svn path=/; revision=396
trunk/src/genpkgindex/genpkgindex
patch
|
blob
|
history
diff --git
a/trunk/src/genpkgindex/genpkgindex
b/trunk/src/genpkgindex/genpkgindex
index 6c0ca77df14aae83ad2800ad7aaa31d9e6772f98..16ba219a55be0c0eddc93e9ddc2c7795c3a2f2de 100644
(file)
--- a/
trunk/src/genpkgindex/genpkgindex
+++ b/
trunk/src/genpkgindex/genpkgindex
@@
-230,10
+230,13
@@
fp.write("\n")
fp.flush()
fp.close()
if (compress):
- os.system("bzip2
.Packages
")
+ os.system("bzip2
< .Packages > .Packages.bz2
")
os.rename(".Packages.bz2", "Packages.bz2")
else:
- os.rename(".Packages", "Packages")
+ if os.path.exists("Packages.bz2"):
+ os.unlink("Packages.bz2")
+
+os.rename(".Packages", "Packages")
# Clean up stale cache files
os.chdir(portage_const.CACHE_PATH+"/xpak")