Changeset 26


Ignore:
Timestamp:
12/08/05 17:00:37 (18 years ago)
Author:
kdeugau
Message:

/trunk

Tweak Patchnn:/%patch processing to strip URL path from patch filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r25 r26  
    471471        $pkgdata{sources}{$1} = $2;
    472472      } elsif (/^patch([^:]+):\s+(.+)$/i) {
    473         $pkgdata{main}{"patch$1"} = $2;
     473        my $patchname = "patch$1";
     474        $pkgdata{main}{$patchname} = $2;
     475        if ($pkgdata{main}{$patchname} =~ /\//) {
     476          # URL-style patch.  Rare but not unheard-of.
     477          my @patchbits = split '/', $pkgdata{main}{$patchname};
     478          $pkgdata{main}{$patchname} = $patchbits[$#patchbits];
     479        }
    474480      }
    475481#Name: suwrap
Note: See TracChangeset for help on using the changeset viewer.