5 |
|
|
6 |
dryrun=echo |
dryrun=echo |
7 |
|
|
8 |
|
if [ $# != 3 ] |
9 |
|
then |
10 |
|
echo 'Usage: mga-move-update distrorelease section srcname' >&2 |
11 |
|
exit 1 |
12 |
|
fi |
13 |
|
|
14 |
distrorelease="$1" |
distrorelease="$1" |
15 |
section="$2" |
section="$2" |
16 |
srcname="$3" |
srcname="$3" |
17 |
if test -z $distrorelease || test -z $section || test -z $srcname |
|
18 |
|
if ! inlist "$distrorelease" "$distroreleases" |
19 |
|
then |
20 |
|
echo "Incorrect distrorelease $distrorelease" >&2 |
21 |
|
exit 1 |
22 |
|
fi |
23 |
|
|
24 |
|
if ! inlist "$section" "$distrosections" |
25 |
then |
then |
26 |
echo 'Missing argument' >&2 |
echo "Incorrect section $section" >&2 |
27 |
exit 1 |
exit 1 |
28 |
fi |
fi |
29 |
|
|