Revision 22978,
395 bytes
checked in by tabbott, 17 years ago
(diff) |
Use the new --apt-update feature of schroot 1.20 to simplify sbuildhack.
|
Line | |
---|
1 | package SbuildHack; |
---|
2 | |
---|
3 | use Sbuild qw(binNMU_version); |
---|
4 | use Fcntl qw(:flock); |
---|
5 | |
---|
6 | sub new_binNMU_version { |
---|
7 | my $v = shift; |
---|
8 | my $binNMUver = shift; |
---|
9 | die("Wrong binNMUver!") unless ($binNMUver == 171717); |
---|
10 | die("No NMUTAG set in environment!") unless ($ENV{"NMUTAG"}); |
---|
11 | return $v . $ENV{"NMUTAG"}; |
---|
12 | }; |
---|
13 | |
---|
14 | { |
---|
15 | no warnings 'redefine'; |
---|
16 | *Sbuild::binNMU_version = \&new_binNMU_version; |
---|
17 | } |
---|
18 | |
---|
19 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.