diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-09-10 01:04:25 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-11-01 12:13:34 +0100 |
commit | 4fcedea4ae5fb8788c7ef0ddd907ed8b02d14a5b (patch) | |
tree | 7b0fa5e49907219473dbf4d56c6033cd1c279d84 /db-functions | |
parent | 278d07fb2b72951e1f03154df55bb833cc38d29b (diff) | |
download | dbscripts-4fcedea4ae5fb8788c7ef0ddd907ed8b02d14a5b.tar.gz dbscripts-4fcedea4ae5fb8788c7ef0ddd907ed8b02d14a5b.tar.xz |
disallow packages without a valid PACKAGER
Shame.
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'db-functions')
-rw-r--r-- | db-functions | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db-functions b/db-functions index bb49894..7e1b3aa 100644 --- a/db-functions +++ b/db-functions @@ -297,6 +297,13 @@ getpkgarch() { echo "$_ver" } +check_packager() { + local _packager + + _packager=$(_grep_pkginfo "$1" "packager") + [[ $_packager && $_packager != 'Unknown Packager' ]] +} + getpkgfile() { if [[ ${#} -ne 1 ]]; then error 'No canonical package found!' |