Changeset 171
- Timestamp:
- 09/21/12 12:22:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r170 r171 179 179 # Requires, Provides 180 180 # 10/31/2005 Maybe this should be flatter? -kgd 181 my %pkgdata ;181 my %pkgdata = (main => {source => ''}); 182 182 my @pkglist = ('main'); #sigh 183 183 # Files listing. Embedding this in %pkgdata would be, um, messy. … … 671 671 if (/^\%prep/) { 672 672 $stage = 'prep'; 673 # This really should be local-ish, but we need just the filename for the source674 $pkgdata{main}{source} =~ s|.+/([^/]+)$|$1|;675 673 # Replace some core macros 676 674 $pkgdata{main}{source} = expandmacros($pkgdata{main}{source},'gp'); … … 951 949 } elsif (/^source0?:\s*(.+)/i) { 952 950 $pkgdata{main}{source} = $1; 951 # Do this here since we don't use any URL forms elsewhere (maybe some other time) 952 $pkgdata{main}{source} =~ s|^.+/([^/]+)$|$1|; 953 953 # .tar, .tar.gz, .tar.bz2, .tgz 954 954 die "Unknown tarball format $1\n" if $1 !~ /\.(?:tar(?:\.(?:gz|bz2))?|tgz)$/; 955 } elsif (/^source([0-9]+):\s*(.+)/i) { 956 $pkgdata{sources}{$1} = $2; 955 } elsif (my ($srcnum, $src) = (/^source([0-9]+):\s*(.+)/i)) { 956 $pkgdata{sources}{$srcnum} = $src; 957 # Do this here since we don't use any URL forms elsewhere (maybe some other time) 958 $pkgdata{sources}{$srcnum} =~ s|^.+/([^/]+)$|$1|; 957 959 } elsif (/^patch([^:]+):\s*(.+)$/i) { 958 960 my $patchname = "patch$1"; … … 1398 1400 $paxcmd = "cd $topdir; pax -w "; 1399 1401 1400 # tweak source entry into usable form. Need it locally somewhere along the line. 1401 (my $pkgsrc = $pkgdata{main}{source}) =~ s|.+/([^/]+)$|$1|; 1402 $paxcmd .= "SOURCES/$pkgsrc "; 1402 # some packages may not have a "main" source. 1403 $paxcmd .= "SOURCES/$pkgdata{main}{source} " if $pkgdata{main}{source}; 1403 1404 1404 1405 # create file list: Source[nn], Patch[nn]
Note:
See TracChangeset
for help on using the changeset viewer.