File tree Expand file tree Collapse file tree 3 files changed +14
-49
lines changed Expand file tree Collapse file tree 3 files changed +14
-49
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ TAG = $(shell git describe --abbrev=0 --tags)
7
7
BASH_SCRIPTS = \
8
8
admin/checkservices \
9
9
aur/review \
10
- aur/repos2aur \
11
10
package/parse-submodules \
12
11
package/pkgsearch \
13
12
package/rebuild-todo
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
# Default: fetches all packages and reviews them.
9
9
10
10
fetch (){
11
- pkgs=$( curl -s " https://aur.archlinux.org/rpc/?v=5&type=search&search_by=maintainer&arg=$1 " | jq -r ' .results[].PackageBase' | sort -u)
11
+ pkgs=$( curl -s " https://aur.archlinux.org/rpc/?v=5&type=search&by=maintainer&arg=$1 " | jq -r ' .results[].PackageBase' | sort -u)
12
+
13
+ if [[ -z ${pkgs} ]]; then
14
+ printf " no packages found for %s\n" " $1 "
15
+ exit 1
16
+ fi
17
+
12
18
for pkg in $pkgs ; do
13
19
printf " ===> Downloading %s...\n" " $pkg "
14
20
curl -s " https://aur.archlinux.org/cgit/aur.git/snapshot/$pkg .tar.gz" | tar xzm
@@ -25,8 +31,10 @@ review(){
25
31
done
26
32
}
27
33
28
- case " $@ " in
29
- fetch) shift ; fetch " $@ " ;;
30
- review) shift ; review " $@ " ;;
31
- * ) shift ; fetch " $@ " ; review " $@ " ;;
32
- esac
34
+ while (( $# )) ; do
35
+ case " $1 " in
36
+ fetch) shift ; fetch " $@ " ; exit 0;;
37
+ review) shift ; review " $@ " ; exit 0;;
38
+ * ) fetch " $@ " && review " $@ " ;;
39
+ esac
40
+ done
You can’t perform that action at this time.
0 commit comments