Skip to content
Snippets Groups Projects
Verified Commit c667b814 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

lists: Report target Turris OS

This should help us to debug system configuration better to see what
exactly was targeted version. This also helps users to see what they are
dealing with. It in some sense informs them if they are upgrading to new
version or if that is just packages change (because of configuration
change) in same release.
parent 41a6ddc8
Branches
Tags
1 merge request!123Turris OS 5.0 (HBK)
......@@ -72,6 +72,7 @@ mkdir -p "$output_path"
listsdir="$tb/lists$obsolete"
m4args=( "--include=$listsdir" "-D_INCLUDE_=$listsdir/" "-D_FEEDS_=$tb/feeds.conf" )
m4args+=( "-D_TURRIS_OS_VERSION_=$("${0%/*}/helpers/turris-version.sh" version)" )
find "$listsdir" -name '*.lua.m4' -print0 | while read -r -d '' f; do
output="$output_path/${f##$listsdir/}"
......
......@@ -14,3 +14,6 @@ for _, feed in ipairs(feeds) do
-- Standard Turris OS package repository
Repository(feed, rroot .. "/packages/" .. feed)
end
INFO("Target Turris OS: _TURRIS_OS_VERSION_")
DBG("Current Turris OS: " .. tostring(os_release.VERSION))
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