From 970d2e942eb29bf78fe89895ace4d781970b6e94 Mon Sep 17 00:00:00 2001
From: Aaron Griffin <aaronmgriffin@gmail.com>
Date: Thu, 29 Mar 2007 21:30:40 -0500
Subject: 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>
---
 scripts/repo-add | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'scripts')

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'"
-- 
cgit v1.2.3-70-g09d2