From: Ludwig Nussel Date: Wed, 17 Jun 2009 12:20:08 +0000 (+0000) Subject: also consider patches as sources X-Git-Tag: obs_2.0~187 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ac84b17d2c1a110a3a8f72ac9f237adb326b0e9;p=tools%2Fobs-build.git also consider patches as sources --- diff --git a/spectool b/spectool index a755b8e..0d9136c 100755 --- a/spectool +++ b/spectool @@ -272,7 +272,7 @@ for my $spec (@specs) { my $srcfile = read_sources_digests($files, $spec); if ($opt_download) { for my $t (keys %$parsed) { - next unless ($t =~ /^source\d*/); + next unless ($t =~ /^(?:source|patch)\d*/); my $url = $parsed->{$t}; next unless $url =~ /^(?:http|ftp):\/\//; my $file = $url; @@ -297,7 +297,7 @@ for my $spec (@specs) { if ($opt_update) { my $changed; for my $t (keys %$parsed) { - next unless ($t =~ /^source\d*/); + next unless ($t =~ /^(?:source|patch)\d*/); my $file = $parsed->{$t}; $file =~ s/.*\///; next unless -B $file; @@ -319,7 +319,7 @@ for my $spec (@specs) { } } else { for my $t (keys %$parsed) { - next unless ($t =~ /^source\d*/); + next unless ($t =~ /^(?:source|patch)\d*/); my $file = $parsed->{$t}; $file =~ s/.*\///; if (!exists $files->{$file}) {