parse all changes
This commit is contained in:
parent
f658aab501
commit
f8c7f05e6f
@ -193,17 +193,21 @@ if (-d "$old") {
|
|||||||
rename("$spec.new", "$spec") || die "rename failed";
|
rename("$spec.new", "$spec") || die "rename failed";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chdir($dir);
|
||||||
|
my @changes = glob("*.changes");
|
||||||
chdir($odir);
|
chdir($odir);
|
||||||
|
|
||||||
if (%patches) {
|
if (%patches) {
|
||||||
# parsing changes
|
# parsing changes
|
||||||
my $diff = diff "$old/$changes", "$dir/$changes";
|
for my $changes (@changes) {
|
||||||
for my $line (split(/\n/, $diff)) {
|
my $diff = diff "$old/$changes", "$dir/$changes";
|
||||||
next unless $line =~ m/^+/;
|
for my $line (split(/\n/, $diff)) {
|
||||||
$line =~ s/^\+//;
|
next unless $line =~ m/^+/;
|
||||||
for my $patch (keys %patches) {
|
$line =~ s/^\+//;
|
||||||
if ($line =~ m/$patch/) {
|
for my $patch (keys %patches) {
|
||||||
delete $patches{$patch};
|
if ($line =~ m/$patch/) {
|
||||||
|
delete $patches{$patch};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user