Entropy/ServerInterface:
- make dependencies_test() a blocker git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1954 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -15961,6 +15961,21 @@ class ServerMirrorsInterface:
|
||||
|
||||
if upload_queue and not no_upload:
|
||||
|
||||
deps_not_found = self.Entropy.dependencies_test()
|
||||
if deps_not_found:
|
||||
self.Entropy.updateProgress(
|
||||
"[repo:%s|%s] %s: %s" % (
|
||||
brown(repo),
|
||||
red(_("sync")),
|
||||
blue(_("database sync forbidden")),
|
||||
red(_("dependencies_test() reported errors")),
|
||||
),
|
||||
importance = 1,
|
||||
type = "error",
|
||||
header = darkred(" !!! ")
|
||||
)
|
||||
return 3,set(),set()
|
||||
|
||||
uris = [x[0] for x in upload_queue]
|
||||
errors, fine_uris, broken_uris = self.upload_database(uris, repo = repo)
|
||||
if errors:
|
||||
|
||||
@@ -477,7 +477,7 @@ def database(options):
|
||||
print_info(green(" * ")+red("%s..." % (_("Bumping Repository database"),) ))
|
||||
Entropy.bump_database()
|
||||
if databaseRequestSync:
|
||||
Entropy.MirrorsService.sync_databases()
|
||||
errors, fine, broken = Entropy.MirrorsService.sync_databases()
|
||||
|
||||
def spm(options):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user