]> git.pld-linux.org Git - packages/adapter.git/commitdiff
- print out more info which version was expected and what we got
authorElan Ruusamäe <glen@delfi.ee>
Mon, 9 Jul 2012 16:10:45 +0000 (19:10 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 9 Jul 2012 16:10:45 +0000 (19:10 +0300)
adapter.awk

index 35627d154400a3887b5b4c59dd701bcb4dff10dc..fad5240b1b6804fd8c216ceb4e55f0063d55e489 100644 (file)
@@ -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);
        }
This page took 0.047249 seconds and 4 git commands to generate.