Changeset 49 for trunk


Ignore:
Timestamp:
03/07/06 16:04:54 (19 years ago)
Author:
kdeugau
Message:

/trunk

Fix some broken behaviour with subpackages and -n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debbuild

    r48 r49  
    330330        my $subname = "main";
    331331        if ($1) {
    332           if (/-n/) { $subname = $1; } else { $subname = "$pkgdata{main}{name}-$1"; }
     332          my $tmp = $1;
     333          if (/-n/) { $subname = $tmp; } else { $subname = "$pkgdata{main}{name}-$tmp"; }
    333334        }
    334335        while (<SPECFILE>) {
     
    339340      }
    340341      if (/^\%package\s+(?:-n\s+)?([a-zA-Z0-9_.-]+)/) {
    341         my $subname;
    342         if (/-n/) { $subname = $1; } else { $subname = "$pkgdata{main}{name}-$1"; }
     342        my $subname = $1;
     343        if (! /-n/) { $subname = "$pkgdata{main}{name}-$1"; }
    343344        push @pkglist, $subname;
    344345        $pkgdata{$subname}{name} = $subname;
     
    459460        my $pkgname = 'main';
    460461        if ($1) {       # Magic to add entries to the right list of files
    461           if (/-n/) { $pkgname = $1; } else { $pkgname = "$pkgdata{main}{name}-$1"; }
     462          my $tmp = $1;
     463          if (/-n/) { $pkgname = $tmp; } else { $pkgname = "$pkgdata{main}{name}-$tmp"; }
    462464        }
    463465
Note: See TracChangeset for help on using the changeset viewer.