summaryrefslogtreecommitdiff
authorgroucho <groucho>2003-04-22 17:10:09 (UTC)
committer groucho <groucho>2003-04-22 17:10:09 (UTC)
commit4b5fb887993d2e82a7f7c885c8a7104f1aad6b89 (patch) (unidiff)
tree45e9620c22c07402a55aa088e2622c5ba8020a0a
parentd52050f2d288435e47da6448f7c8f060cea1d02f (diff)
downloadopie-4b5fb887993d2e82a7f7c885c8a7104f1aad6b89.zip
opie-4b5fb887993d2e82a7f7c885c8a7104f1aad6b89.tar.gz
opie-4b5fb887993d2e82a7f7c885c8a7104f1aad6b89.tar.bz2
At least mPackages now inserts the file names to the Package entry- rough work around
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/mkPackages1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mkPackages b/scripts/mkPackages
index 06d2281..b37aa10 100755
--- a/scripts/mkPackages
+++ b/scripts/mkPackages
@@ -4,23 +4,24 @@ for i in *.ipk
4do 4do
5 packagename=${i%%_*} 5 packagename=${i%%_*}
6 #echo >&2 "$packagename..." 6 #echo >&2 "$packagename..."
7 GOOD=y 7 GOOD=y
8 for other in ${packagename}_* 8 for other in ${packagename}_*
9 do 9 do
10 if [ $i != $other -a $other -nt $i ] 10 if [ $i != $other -a $other -nt $i ]
11 then 11 then
12 GOOD= 12 GOOD=
13 break 13 break
14 fi 14 fi
15 done 15 done
16 if [ -n "$GOOD" ] 16 if [ -n "$GOOD" ]
17 then 17 then
18 # tar xfOz $i ./control.tar.gz | tar xfOz - ./control 18 # tar xfOz $i ./control.tar.gz | tar xfOz - ./control
19 # new version of ipkg uses ar instead of tar 19 # new version of ipkg uses ar instead of tar
20 echo "Filename: $i"
20 ar pf $i control.tar.gz | tar xfOz - ./control 21 ar pf $i control.tar.gz | tar xfOz - ./control
21 echo 22 echo
22 else 23 else
23 echo >&2 "Skipped old file: $i ($other is newer)" 24 echo >&2 "Skipped old file: $i ($other is newer)"
24 #mv $i old 25 #mv $i old
25 fi 26 fi
26done >Packages 27done >Packages