anielkis should really use this

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1144 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-02-06 00:58:37 +00:00
parent 7e4432b480
commit b996e940f0
+4 -3
View File
@@ -1176,14 +1176,15 @@ def database(options):
# rescan package
metadata = Entropy.entropyTools.extractPkgData(download, silent = True)
db_content = dbconn.retrieveContent(idpackage)
found_content = set([x for x in metadata['content']])
found_content = metadata['content']
test_content = set([x.encode('raw_unicode_escape') for x in metadata['content']])
del metadata
if db_content != found_content:
if db_content != test_content:
if databaseRequestJustScan:
# show difference
print_warning(countstring+red(" Content difference for ")+brown(atom)+(":"))
print_warning(countstring+" repository entries: "+str(len(db_content)))
print_warning(countstring+" scanned entries: "+str(len(found_content)))
print_warning(countstring+" scanned entries: "+str(len(test_content)))
else:
stats['updated'] += 1
print_info(countstring+red("Updating content metadata for ")+brown(atom))