Created
September 2, 2015 21:14
-
-
Save Intey/df112bf4eb7be604b501 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import sys | |
import os | |
packs=[] | |
deps=[] | |
packs = sys.argv[1:] | |
if not packs: | |
print("suppli packs") | |
exit() | |
for p in packs: | |
cmd = "expac -S '%D' " + p | |
print(cmd) | |
deps += os.popen(cmd).read()[:-1].split() | |
cmd= 'sudo pacman -Sw --cachedir /home/intey/cache ' + ' '.join(packs) + " " + ' '.join(deps) | |
print(cmd) | |
print(os.popen(cmd).read()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment