mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* Be stricter about which patch files to apply by default. For old behavior
use --anypatch. * Minor perl 5.8 fix.
This commit is contained in:
@@ -258,12 +258,13 @@ patches in.
|
||||
|
||||
sub getpatch {
|
||||
my $this=shift;
|
||||
|
||||
my $anypatch=shift;
|
||||
|
||||
my @patches;
|
||||
foreach my $dir (@_) {
|
||||
push @patches, glob("$dir/".$this->name."_".$this->version."-".$this->release."*.diff.gz");
|
||||
}
|
||||
unless (@patches) {
|
||||
if (! @patches && $anypatch) {
|
||||
# Try not matching the revision, see if that helps.
|
||||
foreach my $dir (@_) {
|
||||
push @patches,glob("$dir/".$this->name."_".$this->version."*.diff.gz");
|
||||
|
||||
Reference in New Issue
Block a user