source: trunk/debathena/scripts/SbuildHack.pm @ 22978

Revision 22978, 395 bytes checked in by tabbott, 16 years ago (diff)
Use the new --apt-update feature of schroot 1.20 to simplify sbuildhack.
Line 
1package SbuildHack;
2
3use Sbuild qw(binNMU_version);
4use Fcntl qw(:flock);
5
6sub 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
191;
Note: See TracBrowser for help on using the repository browser.