Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/get-package-updates10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/get-package-updates b/bin/get-package-updates
index 29fa1ec..0ae3387 100755
--- a/bin/get-package-updates
+++ b/bin/get-package-updates
@@ -143,7 +143,8 @@ while read -r package git_revision mod_git_revision repository; do
# extract infos from PKGBUILD if not existent yet
if [ ! -e "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.builds" ] || \
- [ ! -e "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.needs" ]; then
+ [ ! -e "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.needs" ] || \
+ [ ! -e "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.packages" ]; then
(
cd "${PKGBUILD%/*}"
@@ -157,6 +158,13 @@ while read -r package git_revision mod_git_revision repository; do
sort -u > \
"${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.builds"
+ # extract "packages" = pkgname
+ grep '^pkgname = ' "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.SRCINFO" | \
+ cut -d= -f2 | \
+ sed 's|^\s\+||; s|[<>]$||' | \
+ sort -u > \
+ "${work_dir}/package-infos/${package}.${git_revision}.${new_repo_revisions["archlinux32"]}.packages"
+
# extract "needs" = ( makedepends \cup checkdepends ) \setminus "builds"
(
(