1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

repo-add leaves .PKGINFO in the current directory

* Misuse of 'tar xf', which should be 'tar tf'

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
Aaron Griffin 2007-03-29 21:30:40 -05:00
parent 9a9f1e00da
commit 970d2e942e

View File

@ -246,7 +246,7 @@ if [ $# -gt 1 ]; then
fi fi
else else
if [ -f "$arg" ]; then if [ -f "$arg" ]; then
if ! tar xf "$arg" .PKGINFO 2>&1 >/dev/null; then if ! tar tf "$arg" .PKGINFO 2>&1 >/dev/null; then
echo "error: '$arg' is not a package file, skipping" echo "error: '$arg' is not a package file, skipping"
else else
echo ":: adding package '$arg'" echo ":: adding package '$arg'"