Changeset 162 for trunk/debbuild
- Timestamp:
- 04/08/12 21:18:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/debbuild
r161 r162 132 132 "4" => "etch", 133 133 "5" => "lenny", 134 "5.0.0" => "squeeze", 134 "6.0" => "squeeze", 135 "7.0" => "wheezy", #maybe? 135 136 "99" => "sid"); 136 137 # Enh. There doesn't seem to be any better way to do this... :( … … 146 147 } else { 147 148 149 # *eyeroll* there *really* has to be a better way to go about this. You 150 # can't sanely build packages for multiple distro targets if you can't 151 # programmatically figure out which one you're building on. 152 153 # note that we care only about major release numbers; tracking minor or point 154 # releases would be... exponentially more painful. 155 148 156 # for the lazy copy-paster: dpkg-query --showformat '${version}\n' -W base-files 149 157 # avoid shellisms … … 152 160 close BASEGETTER; 153 161 154 if ($basever =~ /^\d\.\d\.\d$/) { 155 # sarge, possibly squeeze O_o (5.0.0 as of 2010/02/03) 156 $basever =~ s/\.\d$//; 157 } 158 $basever = 5 if ($basever =~ /lenny/); 162 ($basever) = ($basever =~ /^(\d(?:\.\d)?)/); 159 163 } 160 164
Note:
See TracChangeset
for help on using the changeset viewer.