diff options
author | Allan McRae <allan@archlinux.org> | 2012-06-07 16:21:05 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-06-25 23:08:15 -0500 |
commit | e253968b4df079faf91266639be1b8b2cff6e2b5 (patch) | |
tree | a62b47f13c653fe908e929ff8f1b3c9a5abbf104 /scripts/repo-add.sh.in | |
parent | 81dd6ddf0cdd4034771828529c65d61e5bc94e5d (diff) | |
download | pacman-e253968b4df079faf91266639be1b8b2cff6e2b5.tar.xz |
repo-add: add checkdepends information
Similar to the case for makedepends, it is useful to be able to
access this information without parsing a PKGBUILD.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r-- | scripts/repo-add.sh.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index e43f0961..504cae97 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -257,7 +257,7 @@ db_write_entry() { # blank out all variables local pkgfile=$1 local -a _groups _licenses _replaces _depends _conflicts _provides \ - _optdepends _makedepends + _optdepends _makedepends _checkdepends local pkgname pkgver pkgdesc csize size url arch builddate packager \ md5sum sha256sum pgpsig pgpsigsize @@ -278,6 +278,7 @@ db_write_entry() { provides) _provides+=("$provides") ;; optdepend) _optdepends+=("$optdepend") ;; makedepend) _makedepends+=("$makedepend") ;; + checkdepend) _checkdepends+=("$checkdepend") ;; esac done< <(bsdtar -xOqf "$pkgfile" .PKGINFO) @@ -365,6 +366,7 @@ db_write_entry() { format_entry "PROVIDES" "${_provides[@]}" format_entry "OPTDEPENDS" "${_optdepends[@]}" format_entry "MAKEDEPENDS" "${_makedepends[@]}" + format_entry "CHECKDEPENDS" "${_checkdepends[@]}" } >'depends' popd >/dev/null |