diff --git a/slpkg/binary/install.py b/slpkg/binary/install.py index 3791c135..2a96002d 100644 --- a/slpkg/binary/install.py +++ b/slpkg/binary/install.py @@ -144,10 +144,12 @@ class BinaryInstall(object): data.append(split_package(name)[0]) data_dict = Utils().case_sensitive(data) for pkg in self.packages: + index = self.packages.index(pkg) for key, value in data_dict.iteritems(): if key == pkg.lower(): - index = self.packages.index(pkg) self.packages[index] = value + else: + self.packages[index] = pkg.lower() def update_deps(self): """Update dependencies dictionary with all package diff --git a/slpkg/sbo/network.py b/slpkg/sbo/network.py index faa6d0fb..28410a42 100644 --- a/slpkg/sbo/network.py +++ b/slpkg/sbo/network.py @@ -130,6 +130,8 @@ class SBoNetwork(object): for key, value in data_dict.iteritems(): if key == self.name.lower(): self.name = value + else: + self.name = self.name.lower() def read_choice(self): """Return choice diff --git a/slpkg/sbo/slackbuild.py b/slpkg/sbo/slackbuild.py index f0459634..1bc8a57b 100644 --- a/slpkg/sbo/slackbuild.py +++ b/slpkg/sbo/slackbuild.py @@ -150,10 +150,12 @@ class SBoInstall(object): if "--case-ins" in self.flag: data_dict = Utils().case_sensitive(self.data) for name in self.slackbuilds: + index = self.slackbuilds.index(name) for key, value in data_dict.iteritems(): if key == name.lower(): - index = self.slackbuilds.index(name) self.slackbuilds[index] = value + else: + self.slackbuilds[index] = name.lower() def update_deps(self): """Update dependencies dictionary with all package