packages: builder - autoup can fail; detect that

glen glen at pld-linux.org
Mon Oct 25 08:00:03 CEST 2010


Author: glen                         Date: Mon Oct 25 06:00:03 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- autoup can fail; detect that

---- Files affected:
packages:
   builder (1.634 -> 1.635) 

---- Diffs:

================================================================
Index: packages/builder
diff -u packages/builder:1.634 packages/builder:1.635
--- packages/builder:1.634	Thu Sep 16 20:40:08 2010
+++ packages/builder	Mon Oct 25 07:59:58 2010
@@ -1477,6 +1477,10 @@
 			set_release $SPECFILE $PACKAGE_RELEASE 1
 			set_version $SPECFILE $PACKAGE_VERSION $TNEWVER
 			parse_spec
+			if [ "$PACKAGE_VERSION" != "$TNEWVER" ]; then
+				echo >&2 "Upgrading version failed, you need to update spec yourself"
+				exit 1
+			fi
 			return 1
 		fi
 	fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.634&r2=1.635&f=u



More information about the pld-cvs-commit mailing list