From 67a9413ac34f5d0597835a2e38d247eba881b6a4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 17 May 2017 15:01:36 +0200 Subject: bin/get-package-updates: cache names of created packages pr PKGBUILD --- bin/get-package-updates | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'bin') 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" ( ( -- cgit v1.2.3-70-g09d2