[packages/adapter: 547/631] - print out more info which version was expected and what we got

glen glen at pld-linux.org
Mon Sep 12 20:20:17 CEST 2016


commit 8d9ad43467f03fcf365cb50becd6029c55c7b471
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jul 9 19:10:45 2012 +0300

    - print out more info which version was expected and what we got

 adapter.awk | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 35627d1..fad5240 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1892,7 +1892,7 @@ function add_br(br)
 
 # Load rpm macros
 # you should update the list also in adapter when making changes here
-function import_rpm_macros() {
+function import_rpm_macros(  v) {
 	# File with rpm groups
 	topdir = ENVIRON["_topdir"]
 
@@ -1903,8 +1903,9 @@ function import_rpm_macros() {
 	}
 
 	# update this version dep each time some new macro export is added
-	if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < 1.49) {
-		print "adapter shell script is outdated, please cvs up it" > "/dev/stderr"
+	v = 1.49
+	if (!ENVIRON["ADAPTER_REVISION"] || ENVIRON["ADAPTER_REVISION"] < v) {
+		printf("adapter shell script is outdated: Need %s, got %s. Please update it.\n", v, ENVIRON["ADAPTER_REVISION"]) > "/dev/stderr"
 		do_not_touch_anything = 1
 		exit(rc = 1);
 	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list