After a svn sync, write timestamp.chk with the current UTC time such
authorFabian Groffen <grobian@gentoo.org>
Sun, 24 Dec 2006 14:27:08 +0000 (14:27 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sun, 24 Dec 2006 14:27:08 +0000 (14:27 -0000)
that emerge --info shows something nice next timee on Last Sync date.

svn path=/main/branches/prefix/; revision=5379

bin/emerge

index 518993dad3e7aac0b13a364011249321a3265a0f..0df739a15dddd0dd841feb3c80172ccc82d652f1 100755 (executable)
@@ -3812,6 +3812,13 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
                                settings, free=1)
                        if retval != os.EX_OK:
                                sys.exit(retval)
+
+               # write timestamp.chk
+               f = open(os.path.join(myportdir, "metadata", "timestamp.chk"), 'w')
+               f.write(time.strftime("%a, %d %b %Y %H:%M:%S +0000"), time.gmtime())
+               f.write('\n')
+               f.close()
+
                dosyncuri = syncuri
        else:
                print "!!! rsync setting: ",syncuri,"not recognized; exiting."