-rwxr-xr-x | scripts/mkPackages | 4 |
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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | for i in *.ipk | 3 | for i in *.ipk |
4 | do | 4 | do |
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 | ||
20 | ar pf $i control.tar.gz | tar xfOz - ./control | ||
19 | echo | 21 | echo |
20 | else | 22 | else |
21 | echo >&2 "Skipped old file: $i ($other is newer)" | 23 | echo >&2 "Skipped old file: $i ($other is newer)" |
22 | #mv $i old | 24 | #mv $i old |
23 | fi | 25 | fi |
24 | done >Packages | 26 | done >Packages |