[projects/distfiles/patchset] - allow spec macros in patchset pattern

glen glen at pld-linux.org
Sat Dec 1 22:54:37 CET 2012


commit 736401ddd99c65c393960b9d4c808dc43f24a758
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Dec 1 23:54:33 2012 +0200

    - allow spec macros in patchset pattern

 specparser.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/specparser.pl b/specparser.pl
index 8302643..9bd39bd 100755
--- a/specparser.pl
+++ b/specparser.pl
@@ -154,8 +154,9 @@ sub process_patchset($) {
     # print out patchset entries which source md5 is present in source file
     my $start = expand($patchset{start}, $macros);
     my $end = expand($patchset{end}, $macros);
+    my $pattern = expand($patchset{pattern}, $macros);
     for (my $i = $start; $i <= $end; $i++) {
-        my $url = sprintf($patchset{pattern}, $i);
+        my $url = sprintf($pattern, $i);
         my ($basename) = $url =~ m{/([^/]+$)};
         my $hash = $files{$basename} or next;
         print_source "patchset $i", $hash, $url;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/distfiles.git/commitdiff/736401ddd99c65c393960b9d4c808dc43f24a758



More information about the pld-cvs-commit mailing list