mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Added download .asc files
This commit is contained in:
parent
3b7c5175e2
commit
7699831612
1 changed files with 4 additions and 3 deletions
|
@ -82,8 +82,8 @@ def patches():
|
||||||
read = raw_input("\nWould you like to upgrade [Y/n]? ")
|
read = raw_input("\nWould you like to upgrade [Y/n]? ")
|
||||||
if read == "Y" or read == "y":
|
if read == "Y" or read == "y":
|
||||||
for dwn in dwn_patches:
|
for dwn in dwn_patches:
|
||||||
subprocess.call("wget -N --directory-prefix={0} {1}".format(
|
subprocess.call("wget -N --directory-prefix={0} {1} {2}".format(
|
||||||
pch_path, dwn), shell=True)
|
pch_path, dwn, dwn + ".asc"), shell=True)
|
||||||
for pkg in upgrade_all:
|
for pkg in upgrade_all:
|
||||||
print("{0}[ upgrading ] --> {1}{2}".format(
|
print("{0}[ upgrading ] --> {1}{2}".format(
|
||||||
colors.GREEN, colors.ENDC, pkg))
|
colors.GREEN, colors.ENDC, pkg))
|
||||||
|
@ -97,13 +97,14 @@ def patches():
|
||||||
if read == "Y" or read == "y":
|
if read == "Y" or read == "y":
|
||||||
for pkg in upgrade_all:
|
for pkg in upgrade_all:
|
||||||
os.remove(pch_path + pkg)
|
os.remove(pch_path + pkg)
|
||||||
|
os.remove(pch_path + pkg + ".asc")
|
||||||
if os.listdir(pch_path) == []:
|
if os.listdir(pch_path) == []:
|
||||||
print("Packages removed")
|
print("Packages removed")
|
||||||
else:
|
else:
|
||||||
print("\nThere are packages in direcrory {0}\n".format(
|
print("\nThere are packages in direcrory {0}\n".format(
|
||||||
pch_path))
|
pch_path))
|
||||||
else:
|
else:
|
||||||
print("\nThere are packages in directory {0}\n".format( pch_path))
|
print("\nThere are packages in directory {0}\n".format( pch_path))
|
||||||
else:
|
else:
|
||||||
if arch == "x86_64":
|
if arch == "x86_64":
|
||||||
slack_arch = 64
|
slack_arch = 64
|
||||||
|
|
Loading…
Reference in a new issue