bintree: warn for missing binhost TIMESTAMP
authorZac Medico <zmedico@gentoo.org>
Sun, 30 Jan 2011 04:11:00 +0000 (20:11 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 2 Feb 2011 23:18:15 +0000 (15:18 -0800)
This seems to be the case that's triggered in bug 353189 and bug 350139.

pym/portage/dbapi/bintree.py

index 8c2ba8d1baf064eea4f1fb3c9e29d76b2089d489..e96a7dc9fcaf89d50d8df34a0d2533bbaabac613 100644 (file)
@@ -808,6 +808,8 @@ class binarytree(object):
                                        if not remote_timestamp:
                                                # no timestamp in the header, something's wrong
                                                pkgindex = None
+                                               writemsg(_("\n\n!!! Binhost package index " \
+                                               " has no TIMESTAMP field.\n"), noiselevel=-1)
                                        else:
                                                if not self._pkgindex_version_supported(rmt_idx):
                                                        writemsg(_("\n\n!!! Binhost package index version" \