SPECS: adapter.awk - handle %{py_sitedir}/*-py2.5.egg-info

glen glen at pld-linux.org
Fri Oct 17 00:10:18 CEST 2008


Author: glen                         Date: Thu Oct 16 22:10:18 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- handle %{py_sitedir}/*-py2.5.egg-info

---- Files affected:
SPECS:
   adapter.awk (1.406 -> 1.407) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.406 SPECS/adapter.awk:1.407
--- SPECS/adapter.awk:1.406	Thu Oct 16 23:54:01 2008
+++ SPECS/adapter.awk	Fri Oct 17 00:10:13 2008
@@ -1498,7 +1498,9 @@
 		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
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/adapter.awk?r1=1.406&r2=1.407&f=u



More information about the pld-cvs-commit mailing list