parse all changes

This commit is contained in:
Stephan Kulow 2014-06-05 11:27:51 +02:00
parent f658aab501
commit f8c7f05e6f

View File

@ -193,10 +193,13 @@ if (-d "$old") {
rename("$spec.new", "$spec") || die "rename failed";
}
chdir($dir);
my @changes = glob("*.changes");
chdir($odir);
if (%patches) {
# parsing changes
for my $changes (@changes) {
my $diff = diff "$old/$changes", "$dir/$changes";
for my $line (split(/\n/, $diff)) {
next unless $line =~ m/^+/;
@ -208,6 +211,7 @@ if (-d "$old") {
}
}
}
}
# still some left?
if (%patches) {
$ret = 1;