Verified Commit 8bf06a0e authored by Oskar Roesler's avatar Oskar Roesler
Browse files

Fix FileNotFoundError for config file while running update

parent b81a7bff
......@@ -14,7 +14,7 @@ class Routines:
self.verbosity = verbosity
self.output = output
self.path = os.path.join("./packages/{0}".format(self.package))
config = self.get_config()
config = Routines.get_config()
self.gh = Github(config['CI']['GH_OAUTH_TOKEN'])
self.gh_organization_name = config['CI']['GH_ORGANIZATION']
self.gh_organization = self.gh.get_organization(self.gh_organization_name)
......
......@@ -49,7 +49,7 @@ class Update(Routines):
if old_pkgver == new_pkgver and old_dir == new_dir and old_src == new_src:
print('already matches: {}'.format(self.package))
sys.exit(0)
return
print('starting: {}'.format(self.package))
fname = '{}-{}.tar.gz'.format(self.package, self.package_info['pkgver'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment