From: František Dvořák Date: Tue, 16 Oct 2012 11:41:52 +0000 (+0000) Subject: Replace URL only in spec files. X-Git-Tag: glite-lbjp-common-db_R_3_2_2_1~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ba5a9e0cc32f77fe377094abd74b873ff43f1468;p=jra1mw.git Replace URL only in spec files. --- diff --git a/org.glite.lb/configure b/org.glite.lb/configure index 255b6f2..a2dfed3 100755 --- a/org.glite.lb/configure +++ b/org.glite.lb/configure @@ -1504,7 +1504,7 @@ deb: ${package}-${version}.tar.gz s/--version\s+\S+\s?//; s/$/ --version $version/; } - if (/^Source:.*/) { s,^(Source:\s*).*?([^/]*)$,\1$url_spec/\2,; } + if (/^Source:.*/ and $file =~ /\.spec$/) { s,^(Source:\s*).*?([^/]*)$,\1$url_spec/\2,; } printf DST "%s", "$_"; } close SRC;