Skip to content

Commit

Permalink
Replaces yaourt with packer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Troy Melhase committed Mar 29, 2012
1 parent e736e1d commit 200ab4c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion pacman-grep
@@ -1,3 +1,3 @@
#!/bin/bash
PKGS=`echo "$@" | sed -r 's/(\w*\/)//g'`
/usr/bin/yaourt -Ss $PKGS
/usr/bin/packer -Ss $PKGS
8 changes: 2 additions & 6 deletions pacman-info
@@ -1,9 +1,5 @@
#!/bin/bash
PKGS=`echo "$@" | sed -r 's/(\w*\/)//g'`
if [ -e /usr/bin/yaourt ]
then
yaourt -Qi $PKGS
else
pacman -Qi $PKGS
fi
pacman -Qi $PKGS


8 changes: 2 additions & 6 deletions pacman-ls
@@ -1,8 +1,4 @@
#!/bin/bash
PKGS=`echo "$@" | sed -r 's/(\w*\/)//g'`
if [ -e /usr/bin/yaourt ]
then
yaourt -Ql $PKGS | cut -f 2 -d " "
else
pacman -Ql $PKGS | cut -f 2 -d " "
fi
pacman -Ql $PKGS | cut -f 2 -d " "

4 changes: 0 additions & 4 deletions pacman-ownerof
@@ -1,6 +1,2 @@
#!/bin/bash

# yaourt isn't needed, and it also adds an extra empty line to its
# output, so we just use pacman.

pacman -Qo "$@"
8 changes: 2 additions & 6 deletions pacman-rm
@@ -1,8 +1,4 @@
#!/bin/bash
PKGS=`echo "$@" | sed -r 's/(\w*\/)//g'`
if [ -e /usr/bin/yaourt ]
then
yaourt -Rns $PKGS
else
pacman -Rns $PKGS
fi
sudo pacman -Rns $PKGS

4 changes: 2 additions & 2 deletions pacman-sync
@@ -1,8 +1,8 @@
#!/bin/bash
PKGS=`echo "$@" | sed -r 's/(\w*\/)//g'`
if [ -e /usr/bin/yaourt ]
if [ -e /usr/bin/packer ]
then
yaourt -S $PKGS
packer -S $PKGS
else
pacman -S $PKGS
fi
2 changes: 1 addition & 1 deletion pacman-upgrade-aur
@@ -1,3 +1,3 @@
#!/bin/bash
yaourt -Syu --aur $@
packer -Syu --auronly $@

2 changes: 1 addition & 1 deletion pacman-upgrade-dev
@@ -1,3 +1,3 @@
#!/bin/bash
yaourt -Syu --devel $@
packer -Syu --devel $@

4 changes: 2 additions & 2 deletions pacman-upgrade-sys
@@ -1,7 +1,7 @@
#!/bin/bash
if [ -e /usr/bin/yaourt ]
if [ -e /usr/bin/packer ]
then
yaourt -Syyu
packer -Syyu
else
pacman -Syyu
fi

0 comments on commit 200ab4c

Please sign in to comment.