[packages/adapter: 427/631] - handle %{py_sitedir}/*-py2.5.egg-info
glen
glen at pld-linux.org
Mon Sep 12 20:10:14 CEST 2016
commit 5384172a9cb5a45d0a6988a9fbe0bd27a4eb4e70
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Thu Oct 16 22:10:13 2008 +0000
- handle %{py_sitedir}/*-py2.5.egg-info
Changed files:
adapter.awk -> 1.407
adapter.awk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 062ad16..5634c2d 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list