Added download .asc files

This commit is contained in:
Dimitris Zlatanidis 2014-08-17 08:19:52 +03:00
parent 3b7c5175e2
commit 7699831612

View file

@ -82,8 +82,8 @@ def patches():
read = raw_input("\nWould you like to upgrade [Y/n]? ")
if read == "Y" or read == "y":
for dwn in dwn_patches:
subprocess.call("wget -N --directory-prefix={0} {1}".format(
pch_path, dwn), shell=True)
subprocess.call("wget -N --directory-prefix={0} {1} {2}".format(
pch_path, dwn, dwn + ".asc"), shell=True)
for pkg in upgrade_all:
print("{0}[ upgrading ] --> {1}{2}".format(
colors.GREEN, colors.ENDC, pkg))
@ -97,6 +97,7 @@ def patches():
if read == "Y" or read == "y":
for pkg in upgrade_all:
os.remove(pch_path + pkg)
os.remove(pch_path + pkg + ".asc")
if os.listdir(pch_path) == []:
print("Packages removed")
else: