Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-05-17 15:01:36 +0200
committerErich Eckner <git@eckner.net>2017-05-17 15:01:36 +0200
commit67a9413ac34f5d0597835a2e38d247eba881b6a4 (patch)
tree30d4461ab2cf78f4e3b32b76a91e3d962c9b57fe /bin
parentab49fa11c4b119da5ab5ea9d82d88ffe5764ea52 (diff)
bin/get-package-updates: cache names of created packages pr PKGBUILD
Diffstat (limited to 'bin')
-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"
(
(