Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package agama-auto for openSUSE:Factory checked in at 2025-03-27 22:33:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/agama-auto (Old) and /work/SRC/openSUSE:Factory/.agama-auto.new.2696 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "agama-auto" Thu Mar 27 22:33:38 2025 rev:5 rq:1256466 version:0 Changes: -------- --- /work/SRC/openSUSE:Factory/agama-auto/agama-auto.changes 2025-03-03 16:05:52.689129783 +0100 +++ /work/SRC/openSUSE:Factory/.agama-auto.new.2696/agama-auto.changes 2025-03-27 22:34:13.905400645 +0100 @@ -1,0 +2,6 @@ +Fri Mar 21 16:10:56 UTC 2025 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Start the autoinstallation if a profile is found in a predefined + location (gh#agama-project/agama#2180). + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ agama.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/agama/bin/agama-auto new/agama/bin/agama-auto --- old/agama/bin/agama-auto 2025-02-24 11:30:09.000000000 +0100 +++ new/agama/bin/agama-auto 2025-03-27 13:55:22.000000000 +0100 @@ -1,35 +1,58 @@ -#!/usr/bin/sh -set -ex +#!/usr/bin/bash +set -x -# Temporarily skip the AutoYaST XML validation -export YAST_SKIP_XML_VALIDATION=1 - -if [ -z "$1" ]; then - url=$(grep '\(agama\|inst\).auto=' < /run/agama/cmdline.d/agama.conf | awk -F ':?(inst|agama).auto=' '{sub(/ .*$/, "", $2); print $2}') -else - url="$1" -fi - -if [ -z "$url" ]; then - echo "no autoinstallation profile" - exit 0 -fi - -method=$(grep '\(agama\|inst\).finish=' </run/agama/cmdline.d/agama.conf | awk -F ':?(inst|agama).finish=' '{sub(/ .*$/, "", $2); print $2}') - -echo "Using the profile at $url" +# Find the URL given by the user. +find_user_url() { + local url=$1 + if [ -z "$1" ]; then + url=$(grep '\(agama\|inst\).auto=' </run/agama/cmdline.d/agama.conf | awk -F ':?(inst|agama).auto=' '{sub(/ .*$/, "", $2); print $2}') + echo $url + else + echo $1 + fi +} + +# Try to import a profile from a list of URLs +import_profile() { + local url=$1 + + if [ -n "$url" ]; then + echo "Using the profile located at $url" + agama profile import "$url" && return 0 + else + urls=("label://OEMDRV/autoinst.jsonnet" "label://OEMDRV/autoinst.json" "label://OEMDRV/autoinst.xml" "file:///autoinst.jsonnet" "file:///autoinst.json" "file:///autoinst.xml") + for url in "${urls[@]}"; do + YAST_SKIP_PROFILE_FETCH_ERROR=1 agama profile import "$url" && return 0 + done + fi + + return 1 +} + +# Finish the process depending on the method selected by the user. +finish() { + method=$(grep '\(agama\|inst\).finish=' </run/agama/cmdline.d/agama.conf | awk -F ':?(inst|agama).finish=' '{sub(/ .*$/, "", $2); print $2}') -case "$url" in -*) - /usr/bin/agama profile import "$url" - /usr/bin/agama install case "$method" in "stop" | "halt" | "poweroff") - /usr/bin/agama finish "$method" + agama finish "$method" ;; *) - /usr/bin/agama finish + agama finish ;; esac - ;; -esac +} + +# Temporarily skip the AutoYaST XML validation +export YAST_SKIP_XML_VALIDATION=1 + +url=$(find_user_url "$1") +import_profile $url + +if [ 1 -eq $? ]; then +# Exit if a profile was not found. + exit 0 +fi + +agama install +finish diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/agama/package/agama-auto.changes new/agama/package/agama-auto.changes --- old/agama/package/agama-auto.changes 2025-02-24 11:30:09.000000000 +0100 +++ new/agama/package/agama-auto.changes 2025-03-27 13:55:22.000000000 +0100 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Mar 21 16:10:56 UTC 2025 - Imobach Gonzalez Sosa <igonzalezs...@suse.com> + +- Start the autoinstallation if a profile is found in a predefined + location (gh#agama-project/agama#2180). + +------------------------------------------------------------------- Thu Feb 13 12:10:11 UTC 2025 - Knut Anderssen <kanders...@suse.com> - gh#agama-project/agama#1970 ++++++ agama.obsinfo ++++++ --- /var/tmp/diff_new_pack.lhzuIV/_old 2025-03-27 22:34:14.461423660 +0100 +++ /var/tmp/diff_new_pack.lhzuIV/_new 2025-03-27 22:34:14.465423827 +0100 @@ -1,5 +1,5 @@ name: agama -version: 11+855 -mtime: 1740393009 -commit: a7260f61be33eae08cb17b036d42c9c475de8331 +version: 13+1 +mtime: 1743080122 +commit: e176c9d98e30f2b7c03584598f7fed5118ed72a8