euscan: misc fixes

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
Corentin Chary
2012-08-15 11:04:29 +02:00
parent 88b15c18d2
commit bbfcc3d6d5
10 changed files with 30 additions and 17 deletions

View File

@ -91,8 +91,10 @@ class ScanMetadata(object):
try:
metadata = None
pkg, metadata = self.metadata_from_db(query, pkg)
if not metadata:
pkg, metadata = self.metadata_from_portage(query, pkg)
if not metadata:
return
except Exception as e:
@ -148,6 +150,7 @@ class ScanMetadata(object):
self.style.ERROR("Bad maintainer: '%s' '%s'" % \
(maintainer.name, maintainer.email))
)
pkg.save()
def store_herd(self, name, email):