pld-ftp-admin: shell/bashrc - use rpm tag parsing to find pkgs not...

glen glen at pld-linux.org
Thu Feb 14 18:04:23 CET 2008


Author: glen                         Date: Thu Feb 14 17:04:23 2008 GMT
Module: pld-ftp-admin                 Tag: HEAD
---- Log message:
- use rpm tag parsing to find pkgs not signed, use method that will not exceed arg count for signpkg

---- Files affected:
pld-ftp-admin/shell:
   bashrc (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: pld-ftp-admin/shell/bashrc
diff -u pld-ftp-admin/shell/bashrc:1.6 pld-ftp-admin/shell/bashrc:1.7
--- pld-ftp-admin/shell/bashrc:1.6	Mon Jan 21 16:08:16 2008
+++ pld-ftp-admin/shell/bashrc	Thu Feb 14 18:04:18 2008
@@ -66,9 +66,8 @@
 		return
 	fi
 	local key=$(rpm -E '%_gpg_name')
-	awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' "$@" | \
-	xargs -l1 -ri rpm -qp --qf '{} %{SIGGPG:pgpsig}\n' {} 2>/dev/null | \
-	awk -vk="$key" '$NF ~ k {print > "/dev/stderr"; next} {print $1}' | \
+	echo "$@" | xargs awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' | \
+	xargs -l1 -I '%{F}' rpm --nodigest --nosignature -qp --qf '%|SIGGPG?{}:{%{F}\n}|' '%{F}' | \
 	xargs -l512 -r rpm --resign
 }
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/shell/bashrc?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list