[projects/distfiles/patchset] patchset: include end item as well

glen glen at pld-linux.org
Sat Dec 1 22:43:12 CET 2012


commit 213ada25a88b0e1936e7425551e30a0fbb1f3faa
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Dec 1 23:43:09 2012 +0200

    patchset: include end item as well

 specparser.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/specparser.pl b/specparser.pl
index 07d4611..8302643 100755
--- a/specparser.pl
+++ b/specparser.pl
@@ -154,7 +154,7 @@ 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);
-    for (my $i = $start; $i < $end; $i++) {
+    for (my $i = $start; $i <= $end; $i++) {
         my $url = sprintf($patchset{pattern}, $i);
         my ($basename) = $url =~ m{/([^/]+$)};
         my $hash = $files{$basename} or next;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/distfiles.git/commitdiff/213ada25a88b0e1936e7425551e30a0fbb1f3faa



More information about the pld-cvs-commit mailing list