index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-05-17 15:01:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-05-17 15:01:36 +0200 |
commit | 67a9413ac34f5d0597835a2e38d247eba881b6a4 (patch) | |
tree | 30d4461ab2cf78f4e3b32b76a91e3d962c9b57fe | |
parent | ab49fa11c4b119da5ab5ea9d82d88ffe5764ea52 (diff) |
-rwxr-xr-x | bin/get-package-updates | 10 |
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" ( ( |