Skip to content

Commit

Permalink
Builder|Fixed: Detecting platform from package filename
Browse files Browse the repository at this point in the history
The 32-bit .dmg and the 64-bit .dmg were being treated as both
being for the 10.4+ platform.
  • Loading branch information
skyjake committed Mar 30, 2012
1 parent 5e4ebd8 commit c6b433c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions distrib/builder/event.py
Expand Up @@ -65,10 +65,11 @@ def package_from_filename(self, name):
return 'doomsday'

def os_from_filename(self, name):
found = None
for n, ext, ident in self.oses:
if name.endswith(ext) or ident in name:
return (n, ext, ident)
return None
found = (n, ext, ident)
return found

def version_from_filename(self, name):
ver = self.extract_version_from_filename(name)
Expand Down Expand Up @@ -239,7 +240,7 @@ def html_description(self, encoded=True):
# Find the binaries for this OS.
binaries = []
for f in files:
if osExt in f:
if self.os_from_filename(f)[2] == osIdent:
binaries.append(f)

if not binaries:
Expand Down

0 comments on commit c6b433c

Please sign in to comment.