Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
physicalit committed Mar 23, 2019
1 parent 1d96a40 commit cc61efb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions proton-git
Submodule proton-git added at 60eb97
8 changes: 4 additions & 4 deletions pyaur.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def clone(clone):
def remove(remove):
""" Remove packages """
for pkg in remove:
subprocess.run(['pacman', 'Rsn', pkg])
subprocess.run(['pacman', '-Rsn', pkg])

@cli.command()
@click.argument('install', required=False, nargs=-1)
Expand All @@ -60,16 +60,16 @@ def install(install, o, yes):
for ins in install:
if o:
if yes:
subprocess.run(['pacman', '-Syu' '--needed', ins])
subprocess.run(['pacman', '-Syu', '--needed', ins])
else:
subprocess.run(['pacman', '-Syu' '--needed', '--noconfirm', ins])
subprocess.run(['pacman', '-Syu', '--needed', '--noconfirm', ins])
else:
package = "https://aur.archlinux.org/{0}.git".format(ins)
pathpk = "/var/tmp/{0}".format(ins)
subprocess.run(['git', 'clone', str(package), pathpk])
os.chdir(str(pathpk))
if yes:
subprocess.run(['makepkg', '-sri --needed'])
subprocess.run(['makepkg', '-sri', '--needed'])
else:
subprocess.run(['makepkg', '-sri', '--needed', '--noconfirm'])

Expand Down

0 comments on commit cc61efb

Please sign in to comment.