Changeset 111
- Timestamp:
- 07/06/07 14:51:39 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r110 r111 188 188 $pkgdata{$pkg}{name} =~ tr/_/-/; 189 189 190 my $pkgfullname = "$pkgdata{$pkg}{name}_$pkgdata{$pkg}{version}-$pkgdata{main}{release}_$pkgdata{$pkg}{arch}.deb"; 190 my $pkgfullname = "$pkgdata{$pkg}{name}_". 191 (defined($pkgdata{main}{epoch}) ? "$pkgdata{main}{epoch}:" : ''). 192 "$pkgdata{$pkg}{version}-$pkgdata{main}{release}_$pkgdata{$pkg}{arch}.deb"; 191 193 192 194 print "$pkgfullname\n" if $filelist{$pkg}; … … 194 196 } 195 197 # Source package 196 print "$pkgdata{main}{name}-$pkgdata{main}{version}-$pkgdata{main}{release}.sdeb\n"; 198 print "$pkgdata{main}{name}-". 199 (defined($pkgdata{main}{epoch}) ? "$pkgdata{main}{epoch}:" : ''). 200 "$pkgdata{main}{version}-$pkgdata{main}{release}.sdeb\n"; 197 201 exit 0; 198 202 } … … 797 801 } elsif (/^name:\s+(.+)/i) { 798 802 $pkgdata{main}{name} = expandmacros($1,'g'); 803 } elsif (/^epoch:\s+(.+)/i) { 804 $pkgdata{main}{epoch} = expandmacros($1,'g'); 799 805 } elsif (/^version:\s+(.+)/i) { 800 806 $pkgdata{main}{version} = expandmacros($1,'g'); … … 1036 1042 print DEBSCRIPT $scriptletbase; 1037 1043 print DEBSCRIPT "fakeroot dpkg-deb -b $buildroot/$pkg $topdir/DEBS/$pkgdata{$pkg}{arch}/". 1038 "$pkgdata{$pkg}{name}_$pkgdata{$pkg}{version}-$pkgdata{main}{release}_$pkgdata{$pkg}{arch}.deb\n"; 1044 "$pkgdata{$pkg}{name}_". 1045 (defined($pkgdata{main}{epoch}) ? "$pkgdata{main}{epoch}:" : ''). 1046 "$pkgdata{$pkg}{version}-$pkgdata{main}{release}_$pkgdata{$pkg}{arch}.deb\n"; 1039 1047 # %$&$%@#@@#%@@@ Debian and their horrible ugly package names. >:( 1040 1048 close DEBSCRIPT; 1041 1049 1042 1050 my $control = "Package: $pkgdata{$pkg}{name}\n". 1043 "Version: $pkgdata{$pkg}{version}-$pkgdata{main}{release}\n". 1051 "Version: ". 1052 (defined($pkgdata{main}{epoch}) ? "$pkgdata{main}{epoch}:" : ''). 1053 "$pkgdata{$pkg}{version}-$pkgdata{main}{release}\n". 1044 1054 "Section: $pkgdata{$pkg}{group}\n". 1045 1055 "Priority: optional\n". … … 1111 1121 1112 1122 $finalmessages .= "Wrote binary package ". 1113 "$pkgdata{$pkg}{name}_$pkgdata{$pkg}{version}-$pkgdata{main}{release}_$pkgdata{$pkg}{arch}.deb". 1123 "$pkgdata{$pkg}{name}_". 1124 (defined($pkgdata{main}{epoch}) ? "$pkgdata{main}{epoch}:" : ''). 1125 "$pkgdata{$pkg}{version}-$pkgdata{main}{release}_$pkgdata{$pkg}{arch}.deb". 1114 1126 " in $topdir/DEBS/$pkgdata{$pkg}{arch}\n"; 1115 1127 # and clean up … … 1129 1141 # In case we were called with -bs. 1130 1142 $pkgdata{main}{name} =~ tr/_/-/; 1131 my $pkgsrcname = "$pkgdata{main}{name}-$pkgdata{main}{version}-$pkgdata{main}{release}.sdeb"; 1143 my $pkgsrcname = "$pkgdata{main}{name}-". 1144 (defined($pkgdata{main}{epoch}) ? "$pkgdata{main}{epoch}:" : ''). 1145 "$pkgdata{main}{version}-$pkgdata{main}{release}.sdeb"; 1132 1146 1133 1147 my $paxcmd;
Note:
See TracChangeset
for help on using the changeset viewer.