fix some issues when the database does not exist

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@236 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2007-03-30 18:38:45 +00:00
parent f8fabf4cd5
commit d206ce64dd
2 changed files with 7 additions and 4 deletions
+2
View File
@@ -2,7 +2,9 @@ TODO list (for developers only):
- build() and world(), on enzyme, add the support for whitelist+cron
- build(), on enzyme, add license blacklist (packages that cannot be shipped in a binary form)
- build(), on enzyme, if a package is not going to be installed anymore from an overlay, it must be notified
- build(), on enzyme, quickpkg a package before running emerge(), in this case, if the API has been broken, we can easily query the user and fix it
- system-wide: add free space check
- reagent: tool to create the empty Entropy DB
- activator: for the tidy module I need that reagent includes the SLOT variable.
- activator tasks:
- add/remove packages from the database
+5 -4
View File
@@ -142,7 +142,6 @@ def syncRemoteDatabases():
else:
etpDbLocalRevision = 0
downloadLatest = []
uploadLatest = False
uploadList = []
@@ -166,11 +165,14 @@ def syncRemoteDatabases():
revisions = []
for dbstat in etpDbRemotePaths:
revisions.append(dbstat[1])
latestrevision = alphaSorter(revisions)[len(revisions)-1]
if len(revisions) > 1:
latestrevision = alphaSorter(revisions)[len(revisions)-1]
else:
latestrevision = revisions[0]
for dbstat in etpDbRemotePaths:
if dbstat[1] == latestrevision:
# found !
downloadLatest.append(dbstat)
downloadLatest = dbstat
break
# Now check if we need to upload back the files to the other mirrors
#print "DEBUG: check the others, if they're also updated, quit"
@@ -237,7 +239,6 @@ def syncRemoteDatabases():
if (uploadLatest):
print_info(green(" * ")+red("Starting to update the needed mirrors ..."))
# FIXME: UploadList is wrong?!
_uploadList = []
for uri in etpConst['activatoruploaduris']:
for list in uploadList: