[arch-projects] [dbscripts][PATCH] disallow packages without a valid PACKAGER

Dave Reisner dreisner at archlinux.org
Tue Sep 9 19:04:25 EDT 2014


Shame.
---
current list of packages without a PACKAGER: https://paste.xinu.at/eL2/

 db-functions | 7 +++++++
 db-update    | 3 +++
 2 files changed, 10 insertions(+)

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!'
diff --git a/db-update b/db-update
index 576fe2b..cdc35a5 100755
--- a/db-update
+++ b/db-update
@@ -51,6 +51,9 @@ for repo in ${repos[@]}; do
 			if ! check_pkgrepos "${pkg}"; then
 				die "Package ${repo}/${pkg##*/} already exists in another repository"
 			fi
+			if ! check_packager "${pkg}"; then
+				die "Package ${repo}/${pkg##*/} does not have a valid packager"
+			fi
 		done
 		if ! check_splitpkgs ${repo} ${pkgs[@]}; then
 			die "Missing split packages for ${repo}"
-- 
2.1.0


More information about the arch-projects mailing list