summaryrefslogtreecommitdiffstats
path: root/scripts/repo-add
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-30 03:33:19 +0000
committerAaron Griffin <aaron@archlinux.org>2007-03-30 03:33:19 +0000
commita0f8f03056e0611bcedb9505ea7753830171d499 (patch)
tree92aae1526b6e2f35b92230e68f0579716ce3b5e3 /scripts/repo-add
parent1e859c647f84f162aca282907953b5bf5948021f (diff)
downloadpacman-a0f8f03056e0611bcedb9505ea7753830171d499.tar.xz
commit 970d2e942eb29bf78fe89895ace4d781970b6e94
Author: Aaron Griffin <aaronmgriffin@gmail.com> Date: Thu Mar 29 21:30:40 2007 -0500 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>
Diffstat (limited to 'scripts/repo-add')
-rwxr-xr-xscripts/repo-add2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/repo-add b/scripts/repo-add
index d6e2c5ae..dc280161 100755
--- a/scripts/repo-add
+++ b/scripts/repo-add
@@ -246,7 +246,7 @@ if [ $# -gt 1 ]; then
fi
else
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"
else
echo ":: adding package '$arg'"