]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- fix for BR sorting when value BR value contained versioned component (spaces after $2)
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 7 Sep 2005 18:28:47 +0000 (18:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.183

adapter.awk

index 13deb9ea2bf854564edf60fe9e6ac7308c6b81e7..5d7e048d7ad3b15d4c222585c8af723f9f9ca080 100644 (file)
@@ -99,7 +99,8 @@ function b_makekey(a, b,      s) {
 #   so don't adapterize when the BR/R are mixed with comments
 ENVIRON["SORTBR"] == 1 && preamble == 1 && /(Build)?Requires/, /(Build)?Requires/ { # && !/^%/) {
        b_idx++;
-       b_ktmp = b_makekey($1, $2);
+       l = substr($0, index($0, $2));
+       b_ktmp = b_makekey($1, l);
        b_key[b_idx] = b_ktmp;
        b_val[b_ktmp] = $0;
 
This page took 0.032935 seconds and 4 git commands to generate.