Skip to content

Commit

Permalink
Merge pull request #713 from GabyCT/topic/fixversion
Browse files Browse the repository at this point in the history
pkglib: Fix the detection of the versions.txt
  • Loading branch information
GabyCT committed Sep 12, 2019
2 parents b9053f2 + ee0a556 commit f2b8bf5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion obs-packaging/scripts/pkglib.sh
Expand Up @@ -6,7 +6,14 @@
source_dir_pkg_lib=$(dirname "${BASH_SOURCE[0]}")
source_dir_pkg_lib=$(realpath "${source_dir_pkg_lib}")
source "${source_dir_pkg_lib}/../../scripts/lib.sh"
source "${source_dir_pkg_lib}/../versions.txt"

# Verify that versions.txt exists
version_file="${source_dir_pkg_lib}/../versions.txt"
if [ -f "${version_file}" ]; then
source "${version_file}"
else
die "${version_file} does not exist, you need to run first the gen_versions_txt.sh"
fi

PACKAGING_DIR=/var/packaging
LOG_DIR=${PACKAGING_DIR}/build_logs
Expand Down

0 comments on commit f2b8bf5

Please sign in to comment.