summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-19 03:09:02 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-19 03:09:02 +0000
commitdfe06b1c63cd53e2ebab532f8426e9ac1ec59e11 (patch)
tree17a5c544782bb8c64371e585d98c95f48b235521 /bin
parent994e23cd7f2504b7e8bc5d26a00dfa1e84e9def9 (diff)
downloadportage-dfe06b1c63cd53e2ebab532f8426e9ac1ec59e11.tar.gz
portage-dfe06b1c63cd53e2ebab532f8426e9ac1ec59e11.tar.bz2
portage-dfe06b1c63cd53e2ebab532f8426e9ac1ec59e11.zip
Save timestamp.chk even when metadata-transfer is disabled for bug #137177.
svn path=/main/trunk/; revision=3537
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge22
1 files changed, 12 insertions, 10 deletions
diff --git a/bin/emerge b/bin/emerge
index 5ff9f07ac..dc8af7724 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -2881,6 +2881,18 @@ if myaction in ["sync","metadata"] and (not "--help" in myopts):
if (exitcode==0):
emergelog("=== Sync completed with %s" % dosyncuri)
+ # save timestamp.chk for next timestamp check.
+ try:
+ if tmpservertimestampfile is not None:
+ portage.movefile(tmpservertimestampfile,
+ servertimestampfile)
+ except SystemExit, e:
+ raise
+ except Exception, e:
+ portage.writemsg("!!! Failed to save current timestamp.\n",
+ noiselevel=-1)
+ portage.writemsg("!!! %s\n" % str(e), noiselevel=-1)
+ del e
elif (exitcode>0):
print
if exitcode==1:
@@ -2953,16 +2965,6 @@ if myaction in ["sync","metadata"] and (not "--help" in myopts):
#if os.path.exists(cachedir+"/"+myportdir):
# portage.spawn("rm -Rf "+cachedir+"/"+myportdir+"/*",portage.settings,free=1)
- # save timestamp.chk for next timestamp check.
- try:
- if tmpservertimestampfile != None:
- portage.movefile(tmpservertimestampfile, servertimestampfile)
- except SystemExit, e:
- raise # Needed else can't exit
- except Exception, e:
- print "!!! Failed to save current timestamp."
- print "!!!",e
-
portage.portdb.flush_cache()
ec = portage.eclass_cache.cache(portage.portdb.porttree_root)