[packages/adapter: 94/631] - ugh, it changed "NoSource:" to "Source0:" - fixed

glen glen at pld-linux.org
Mon Sep 12 19:42:20 CEST 2016


commit f4cb1924537e6d18902212fb37178eb41e409314
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jun 22 16:32:59 2001 +0000

    - ugh, it changed "NoSource:" to "Source0:" - fixed
    
    Changed files:
        adapter.awk -> 1.94

 adapter.awk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 79ac5dd..258b594 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -401,7 +401,7 @@ preamble == 1 {
 		$1 = "Epoch:"
 
 	# Use %{name} and %{version} in the filenames in "Source:"
-	if (field ~ /source/ || field ~ /patch/) {
+	if (field ~ /^source/ || field ~ /patch/) {
 		n = split($2, url, /\//)
 		if (url[n] ~ /\.gz$/) {
 			url[n+1] = ".gz" url[n+1]
@@ -439,7 +439,7 @@ preamble == 1 {
 		$2 = fixedsub(filename, url[n], $2)
 	}
 
-	if (field ~ /source:/)
+	if (field ~ /^source:/)
 		$1 = "Source0:"	
 
 	if (field ~ /patch:/)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list