Skip to content

Commit

Permalink
Ensure the latest ISIS always gets built
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-alexandrov committed Oct 4, 2014
1 parent 5a9492a commit 7f75451
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Packages.py
Expand Up @@ -343,7 +343,6 @@ def install(self):
# download ISIS and then download the repo for editing ISIS. We apply
# the patch locally and then build away.
class isis(Package):
chksum = '3.4.7' # must change here when new ISIS is out
def __init__(self, env):
super(isis, self).__init__(env)
self.isis_localcopy = P.join(env['DOWNLOAD_DIR'], 'rsync', self.pkgname)
Expand All @@ -353,6 +352,15 @@ def __init__(self, env):
self.isis_src = "isisdist.astrogeology.usgs.gov::x86-64_darwin_OSX10.8/isis/"
self.isisautotools_src = "https://github.com/NeoGeographyToolkit/AutotoolsForISIS.git"

# Fetch the ISIS version. We will rebuild it each time
# the version changes.
cmd = ['rsync', self.isis_src +'version']
self.helper(*cmd)
f = open('version','r')
chksum = f.readline().strip()
if chksum == "":
raise PackageError(self, 'Could not find the ISIS version')

@stage
def fetch(self, skip=False):
if not P.exists(self.isis_localcopy) or \
Expand Down

0 comments on commit 7f75451

Please sign in to comment.