author | kergoth <kergoth> | 2002-09-08 19:06:25 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-09-08 19:06:25 (UTC) |
commit | cbc8b23c13fab644fd5477a18691222c752ea40f (patch) (unidiff) | |
tree | b239a68cfeb7dc51087938b172c29c03353dd878 | |
parent | b7810f11be4f38de91d51f62c11ae1ae9db3754b (diff) | |
download | opie-cbc8b23c13fab644fd5477a18691222c752ea40f.zip opie-cbc8b23c13fab644fd5477a18691222c752ea40f.tar.gz opie-cbc8b23c13fab644fd5477a18691222c752ea40f.tar.bz2 |
Added -force option to force a update of packages.
-rwxr-xr-x | scripts/updateipks | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/scripts/updateipks b/scripts/updateipks index 83d945b..1c9c9b8 100755 --- a/scripts/updateipks +++ b/scripts/updateipks | |||
@@ -2,2 +2,4 @@ | |||
2 | 2 | ||
3 | while [ $# -ne 0 ] | ||
4 | do | ||
3 | case "$1" in | 5 | case "$1" in |
@@ -7,3 +9,7 @@ case "$1" in | |||
7 | INDEXER="~/ipkg-make-index ." | 9 | INDEXER="~/ipkg-make-index ." |
8 | shift | 10 | ;; |
11 | -oz-test) | ||
12 | RHOST=openzaurus.sf.net | ||
13 | RDIR=/home/groups/o/op/openzaurus/htdocs/feeds/3.0/test | ||
14 | INDEXER="~/ipkg-make-index ." | ||
9 | ;; | 15 | ;; |
@@ -13,3 +19,2 @@ case "$1" in | |||
13 | INDEXER="/home/opie/ipkg-make-index ." | 19 | INDEXER="/home/opie/ipkg-make-index ." |
14 | shift | ||
15 | ;; | 20 | ;; |
@@ -18,5 +23,12 @@ case "$1" in | |||
18 | RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable | 23 | RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable |
19 | shift | 24 | ;; |
25 | -force) | ||
26 | FORCE=1 | ||
27 | ;; | ||
28 | *) | ||
29 | MKIPKSOPTS="$MKIPKSOPTS $1" | ||
20 | ;; | 30 | ;; |
21 | esac | 31 | esac |
32 | shift | ||
33 | done | ||
22 | 34 | ||
@@ -32,5 +44,6 @@ NEW="" | |||
32 | rm -f *.ipk | 44 | rm -f *.ipk |
45 | |||
33 | ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks & | 46 | ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks & |
34 | ./mkipks "$@" | ||
35 | wait # for ssh | 47 | wait # for ssh |
48 | ./mkipks $MKIPKSOPTS | ||
36 | 49 | ||
@@ -38,7 +51,12 @@ for i in *.ipk | |||
38 | do | 51 | do |
39 | if grep -q $i currentipks | 52 | if [ -z "$FORCE" ] |
40 | then | 53 | then |
41 | rm $i | 54 | if grep -q $i currentipks |
55 | then | ||
56 | rm $i | ||
57 | else | ||
58 | NEW="$NEW $i"; | ||
59 | fi | ||
42 | else | 60 | else |
43 | NEW="$NEW $i"; | 61 | NEW="$NEW $i"; |
44 | fi | 62 | fi |