Fix installing a whole packages from a repo

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2017-10-22 17:34:02 +02:00
parent c9d63d58c2
commit f739a92615
2 changed files with 5 additions and 4 deletions

View file

@ -104,7 +104,7 @@ class BinaryInstall(object):
"--resolve-off" not in self.flag): "--resolve-off" not in self.flag):
self.msg.done() self.msg.done()
if self.install: if self.install:
if self.matching: if self.matching and [""] != self.packages:
self.msg.matching(self.packages) self.msg.matching(self.packages)
else: else:
print("\nThe following packages will be automatically " print("\nThe following packages will be automatically "
@ -121,7 +121,7 @@ class BinaryInstall(object):
sums = [sum(i) for i in zip(mas_sum, dep_sum)] sums = [sum(i) for i in zip(mas_sum, dep_sum)]
unit, size = units(self.comp_sum + self.dep_comp_sum, unit, size = units(self.comp_sum + self.dep_comp_sum,
self.uncomp_sum + self.dep_uncomp_sum) self.uncomp_sum + self.dep_uncomp_sum)
if self.matching: if self.matching and [""] != self.packages:
print("\nMatching summary") print("\nMatching summary")
print("=" * 79) print("=" * 79)
print("Total {0} matching packages\n".format(sum(sums))) print("Total {0} matching packages\n".format(sum(sums)))

View file

@ -117,7 +117,7 @@ class SBoInstall(object):
self.clear_masters() self.clear_masters()
if self.package_found: if self.package_found:
if self.match: if self.match and [""] != self.slackbuilds:
self.msg.matching(self.slackbuilds) self.msg.matching(self.slackbuilds)
else: else:
print("\nThe following packages will be automatically " print("\nThe following packages will be automatically "
@ -142,12 +142,13 @@ class SBoInstall(object):
count_total = sum([self.count_ins, self.count_upg, count_total = sum([self.count_ins, self.count_upg,
self.count_uni]) self.count_uni])
if self.match: if self.match and [""] != self.slackbuilds:
print("\nMatching summary") print("\nMatching summary")
print("=" * 79) print("=" * 79)
print("Total {0} matching packages\n".format(count_total)) print("Total {0} matching packages\n".format(count_total))
raise SystemExit(1) raise SystemExit(1)
print("\nInstalling summary") print("\nInstalling summary")
print("=" * 79)
print("{0}Total {1} {2}.".format( print("{0}Total {1} {2}.".format(
self.meta.color["GREY"], count_total, self.meta.color["GREY"], count_total,
self.msg.pkg(count_total))) self.msg.pkg(count_total)))