From f739a92615d5c17892e9e7f81916e1431f2780bf Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Sun, 22 Oct 2017 17:34:02 +0200 Subject: [PATCH] Fix installing a whole packages from a repo Signed-off-by: Dimitris Zlatanidis --- slpkg/binary/install.py | 4 ++-- slpkg/sbo/slackbuild.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/slpkg/binary/install.py b/slpkg/binary/install.py index 1607cbc0..7933de3e 100644 --- a/slpkg/binary/install.py +++ b/slpkg/binary/install.py @@ -104,7 +104,7 @@ class BinaryInstall(object): "--resolve-off" not in self.flag): self.msg.done() if self.install: - if self.matching: + if self.matching and [""] != self.packages: self.msg.matching(self.packages) else: 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)] unit, size = units(self.comp_sum + self.dep_comp_sum, self.uncomp_sum + self.dep_uncomp_sum) - if self.matching: + if self.matching and [""] != self.packages: print("\nMatching summary") print("=" * 79) print("Total {0} matching packages\n".format(sum(sums))) diff --git a/slpkg/sbo/slackbuild.py b/slpkg/sbo/slackbuild.py index 2531448e..20e996ae 100644 --- a/slpkg/sbo/slackbuild.py +++ b/slpkg/sbo/slackbuild.py @@ -117,7 +117,7 @@ class SBoInstall(object): self.clear_masters() if self.package_found: - if self.match: + if self.match and [""] != self.slackbuilds: self.msg.matching(self.slackbuilds) else: print("\nThe following packages will be automatically " @@ -142,12 +142,13 @@ class SBoInstall(object): count_total = sum([self.count_ins, self.count_upg, self.count_uni]) - if self.match: + if self.match and [""] != self.slackbuilds: print("\nMatching summary") print("=" * 79) print("Total {0} matching packages\n".format(count_total)) raise SystemExit(1) print("\nInstalling summary") + print("=" * 79) print("{0}Total {1} {2}.".format( self.meta.color["GREY"], count_total, self.msg.pkg(count_total)))