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>
Sun, 30 Jan 2011 04:11:00 +0000 (20:11 -0800)
This seems to be the case that's triggered in bug 353189 and bug 350139.

pym/portage/dbapi/bintree.py

index 027503cf91889e24f39d495db4a7e25a6069541f..254ed021d134dd31fb710294e47363379bebf6fc 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" \