SPECS: pearize.sh - existing epoch is enough

glen glen at pld-linux.org
Tue Oct 4 00:45:11 CEST 2005


Author: glen                         Date: Mon Oct  3 22:45:11 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- existing epoch is enough

---- Files affected:
SPECS:
   pearize.sh (1.16 -> 1.17) 

---- Diffs:

================================================================
Index: SPECS/pearize.sh
diff -u SPECS/pearize.sh:1.16 SPECS/pearize.sh:1.17
--- SPECS/pearize.sh:1.16	Tue Oct  4 00:32:51 2005
+++ SPECS/pearize.sh	Tue Oct  4 00:45:06 2005
@@ -47,6 +47,14 @@
 add_epoch() {
 	local dep="$@"
 	local pkg="$1"
+	local ver="$3"
+
+	# already have epoch
+	if [[ "$ver" = *:* ]]; then
+		echo "$dep"
+		return
+	fi
+
 	query=$(rpm -q --qf '%{epoch}\n' $pkg || :)
  	epoch=$(echo "$query" | grep -v 'installed' || :)
 	if [ "$epoch" ] && [ "$epoch" -gt 0 ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pearize.sh?r1=1.16&r2=1.17&f=u




More information about the pld-cvs-commit mailing list