create/test/upload tahoe-lafs-VERSION-osx.pkg, not tahoe-lafs-osx.pkg

Closes ticket:2393
This commit is contained in:
Brian Warner
2015-03-21 14:20:00 -07:00
parent 05c6966801
commit c12d49b54e
3 changed files with 8 additions and 4 deletions

View File

@ -85,7 +85,11 @@ def test_osx_pkg(pkgfile):
if __name__ == '__main__':
print "Testing..."
test_osx_pkg('tahoe-lafs-osx.pkg')
pkgs = [fn for fn in os.listdir(".") if fn.endswith("-osx.pkg")]
if len(pkgs) != 1:
print "ERR: unable to find a single .pkg file:", pkgs
sys.exit(1)
print "Testing %s ..." % pkgs[0]
test_osx_pkg(pkgs[0])
print "Looks OK!"