[packages/adapter: 65/631] - subst %{name} and %{version} in all sources (and just %{name} in patches)
glen
glen at pld-linux.org
Mon Sep 12 19:39:54 CEST 2016
commit 2a1c87c79a72db1526da0a2eafa8fa21b4e5896b
Author: Sebastian Zagrodzki <sebek at zagrodzki.net>
Date: Tue Jul 25 08:48:19 2000 +0000
- subst %{name} and %{version} in all sources (and just %{name} in
patches)
Changed files:
adapter.awk -> 1.65
adapter.awk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index f2dd321..2aec935 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -291,11 +291,11 @@ preamble == 1 {
$1 = "Epoch:"
# Use %{name} and %{version} in the filenames in "Source:"
- if (field ~ /source/ && $2 ~ /^ftp:|^http:/) {
+ if (field ~ /source/ || field ~ /patch/) {
n = split($2, url, /\//)
filename = url[n]
sub(name, "%{name}", url[n])
- sub(version, "%{version}", url[n])
+ if (field ~ /source/) sub(version, "%{version}", url[n])
sub(filename, url[n], $2)
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list