diff options
author | Oliver Smith <osmith@sysmocom.de> | 2018-09-21 10:29:51 +0200 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2018-09-21 14:59:14 +0200 |
commit | a99a4ef541af13f93eae4eeb0852f97537886c24 (patch) | |
tree | 2c41cc0e80c29686b2e12dd6e380846f3d525f87 /scripts/osmo-depcheck/parse.py | |
parent | 85c2effd89f2fc83be3a1a7e178c73908976e167 (diff) |
osmo-depcheck: don't use /tmp, better git codeosmith/dependency-check
* replace --gitdir with --workdir and give it a new folder structure:
* git/$repo: downloaded source code
* build/$repo: files created during the build process
* install/: installation prefix
* adjust the jenkins job to use --workdir
* fetch --tags when source exists already
* readable error message for failed git checkout
Change-Id: I06589277b9d54a2af177451cfab2ca1a658b4058
Relates: OS#2642
Diffstat (limited to 'scripts/osmo-depcheck/parse.py')
-rw-r--r-- | scripts/osmo-depcheck/parse.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/osmo-depcheck/parse.py b/scripts/osmo-depcheck/parse.py index c6297d6..06f932e 100644 --- a/scripts/osmo-depcheck/parse.py +++ b/scripts/osmo-depcheck/parse.py @@ -84,16 +84,16 @@ def library_version(line_i, condition): operator + "'") -def configure_ac(gitdir, repo): +def configure_ac(workdir, repo): """ Parse the PKG_CHECK_MODULES statements of a configure.ac file. - :param gitdir: parent folder of all locally cloned git repositories + :param workdir: path to where all data (git, build, install) is stored :param repo: the repository to look at (e.g. "osmo-bts") :returns: a dictionary like the following: {"libosmocore": "0.11.0", "libosmo-abis": "0.5.0"} """ # Read configure.ac - path = gitdir + "/" + repo + "/configure.ac" + path = workdir + "/git/" + repo + "/configure.ac" with open(path) as handle: lines = handle.readlines() |