]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- handle %{py_sitedir}/*-py2.5.egg-info
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 16 Oct 2008 22:10:13 +0000 (22:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    adapter.awk -> 1.407

adapter.awk

index 062ad169551f9d99e2fa143108312caa3c481fc9..5634c2db500d709751b82a171bae6f3d0410856f 100644 (file)
@@ -1498,7 +1498,9 @@ function use_files_macros(        i, n, t, a, l)
                t = substr($0, 0, l - 1);
                s = substr($0, l + 1, RLENGTH - l - length("-py"py_ver".egg-info"));
                if (match(s, "[^-]+$")) {
-                       s = substr(s, 0, RSTART - 2);
+                       if (RLENGTH > 1) {
+                               s = substr(s, 0, RSTART - 2);
+                       }
                        print "%if \"%{py_ver}\" > \"2.4\""
                        gsub(t "/.+.egg-info", t "/" s "-*.egg-info");
                        print
This page took 0.066664 seconds and 4 git commands to generate.