Skip to content

Commit

Permalink
Added detection hack for ubuntu 8.10 IntrepidIbex
Browse files Browse the repository at this point in the history
  • Loading branch information
javiplx committed Nov 13, 2008
1 parent 8673085 commit 4ceb886
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cobbler/action_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,8 @@ def scan_pkg_filename(self, deb):
if deb.lower().find("ubuntu") != -1:
accum.pop(0)
accum.pop(0)
if not accum:
accum.extend( tokens2[2:] )
accum.append(0)

return (None, accum[0], accum[1])
Expand All @@ -1134,6 +1136,8 @@ def set_variance(self, flavor, major, minor, arch):
# Release names taken from wikipedia
dist_names = { '4.10':"WartyWarthog", '5.4':"HoaryHedgehog", '5.10':"BreezyBadger", '6.4':"DapperDrake", '6.10':"EdgyEft", '7.4':"FeistyFawn", '7.10':"GutsyGibbon", '8.4':"HardyHeron", '8.10':"IntrepidIbex", '9.4':"JauntyJackalope" }
dist_vers = "%s.%s" % ( major , minor )
if not dist_names.has_key( dist_vers ):
dist_names['4ubuntu2.0'] = "IntrepidIbex"
os_version = dist_names[dist_vers]

return os_version , "/etc/cobbler/sample.seed"
Expand Down

0 comments on commit 4ceb886

Please sign in to comment.