summaryrefslogtreecommitdiff
path: root/scripts
authortille <tille>2002-09-01 12:32:18 (UTC)
committer tille <tille>2002-09-01 12:32:18 (UTC)
commit21394ee7a48bbe0768a1b820b2493defa534257e (patch) (side-by-side diff)
tree35a3dee857365a4e025d8f3ad48dc8048dfcb862 /scripts
parent8541fd1d46b9954598a7ccf7d56e1ceeaab730fd (diff)
downloadopie-21394ee7a48bbe0768a1b820b2493defa534257e.zip
opie-21394ee7a48bbe0768a1b820b2493defa534257e.tar.gz
opie-21394ee7a48bbe0768a1b820b2493defa534257e.tar.bz2
new ipkg format that uses ar instead of tar
commiting Groucho's opie.info version
Diffstat (limited to 'scripts') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/mkPackages4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/mkPackages b/scripts/mkPackages
index 5734f1c..06d2281 100755
--- a/scripts/mkPackages
+++ b/scripts/mkPackages
@@ -1,24 +1,26 @@
#!/bin/sh
for i in *.ipk
do
packagename=${i%%_*}
#echo >&2 "$packagename..."
GOOD=y
for other in ${packagename}_*
do
if [ $i != $other -a $other -nt $i ]
then
GOOD=
break
fi
done
if [ -n "$GOOD" ]
then
- tar xfOz $i ./control.tar.gz | tar xfOz - ./control
+# tar xfOz $i ./control.tar.gz | tar xfOz - ./control
+ # new version of ipkg uses ar instead of tar
+ ar pf $i control.tar.gz | tar xfOz - ./control
echo
else
echo >&2 "Skipped old file: $i ($other is newer)"
#mv $i old
fi
done >Packages