+ . gear-sh-functions ++ '[' -z '' ']' ++ __included_gear_sh_functions=1 ++ . shell-error +++ '[' -z '' ']' +++ __included_shell_error=1 +++ PROG=update.sh +++ message_syslog= +++ message_time= +++ message_time_format= +++ quiet= +++ verbose= ++ . shell-quote +++ '[' -z '' ']' +++ __included_shell_quote=1 +++ . shell-version ++++ '[' -z '' ']' ++++ __included_shell_version=1 ++++ libshell_vmajor=0 ++++ libshell_vminor=4 ++++ libshell_vpatch=11 ++++ libshell_version=4 ++++ __export_compatibility_string_quote_remove=1 +++ . shell-error ++++ '[' -z 1 ']' +++ . shell-string ++++ '[' -z '' ']' ++++ __included_shell_string=1 +++ '[' -n 1 ']' ++ . shell-args +++ '[' -z '' ']' +++ __included_shell_args=1 +++ . shell-error ++++ '[' -z 1 ']' +++ . shell-var ++++ '[' -z '' ']' ++++ __included_shell_var=1 ++++ . shell-error +++++ '[' -z 1 ']' +++ readonly getopt_common_opts=q,v,V,h +++ getopt_common_opts=q,v,V,h +++ readonly getopt_common_longopts=quiet,verbose,version,help +++ getopt_common_longopts=quiet,verbose,version,help ++ PROG=update.sh ++ PROG_VERSION=2.5.0 ++ gear_short_options=r:,t:,h,q,v,V ++ gear_long_options=no-compress,commit,bzip2,gzip,lz4,lzop,xz,zstd,disable-specsubst,command,hasher,rpmbuild,update-spec,export-dir:,describe,rules:,tree-ish:,help,quiet,verbose,version ++ __cleanup_handler_name= ++ lineno= ++ rules= ++ : __gear_exported_vars ++ export __gear_exported_vars ++ gear_saved_working_directory= ++ workdir= ++ main_tree_id= ++ spec_name= ++ spec_epoch= ++ spec_version= ++ spec_release= ++ specsubst= ++ disable_specsubst= ++ specfile= ++ pkg_name= ++ pkg_epoch= ++ pkg_version= ++ pkg_release= ++ tag_dir= ++ tag_dir_default= ++ tag_list_lineno= ++ main_commit_sha1= ++ def_spec_pattern='*.spec' ++ spec_pattern='*.spec' + specfile= + spec_name= + spec_version= + guess_specfile + '[' -z '' ']' + '[' -n '' ']' + guess_specfile_from_checkout + local rules= + local workdir __cleanup_handler_name + install_cleanup_handler cleanup_workdir + __cleanup_handler_name=cleanup_workdir + trap __exit_handler EXIT + trap __signal_handler HUP PIPE INT QUIT TERM ++ mktemp -dt update.sh.XXXXXXXXXX + workdir=/usr/src/tmp/update.sh.Y8Y0oIg02p + find_rules_in_cwd + gear_find_rules_common gear_find_rules_check_cwd gear_find_rules_cat_cwd + local check_rules=gear_find_rules_check_cwd + shift + local cat_rules=gear_find_rules_cat_cwd + shift + '[' -f /usr/src/tmp/update.sh.Y8Y0oIg02p/rules ']' + local r= + '[' -n '' ']' + local n + for n in .gear-rules .gear/rules + gear_find_rules_check_cwd .gear-rules + '[' -s .gear-rules ']' + for n in .gear-rules .gear/rules + gear_find_rules_check_cwd .gear/rules + '[' -s .gear/rules ']' + rules=.gear/rules + r=.gear/rules + break + '[' -n .gear/rules ']' + gear_find_rules_cat_cwd + cat -- .gear/rules + rules_cleanup /usr/src/tmp/update.sh.Y8Y0oIg02p/rules + '[' -s /usr/src/tmp/update.sh.Y8Y0oIg02p/rules ']' + echo + sed -i 's/^[[:space:]]*\([^[:space:]:]\+\)[[:space:]]*:[[:space:]]*/\1: /' /usr/src/tmp/update.sh.Y8Y0oIg02p/rules + '[' -n .gear/rules ']' + get_uniq_filename_from_rules specfile spec + local var_name=specfile + shift + local directive=spec + shift + local filename= + set_var_value specfile filename + eval 'specfile="${filename-}"' ++ specfile= + get_uniq_directive_from_rules filename spec + local var_name=filename + shift + local directive=spec + shift + local value= + set_var_value filename value + eval 'filename="${value-}"' ++ filename= + find_rules_in_tree + gear_find_rules_common gear_find_rules_check_tree gear_find_rules_cat_tree + local check_rules=gear_find_rules_check_tree + shift + local cat_rules=gear_find_rules_cat_tree + shift + '[' -f /usr/src/tmp/update.sh.Y8Y0oIg02p/rules ']' + return 0 + '[' -s /usr/src/tmp/update.sh.Y8Y0oIg02p/rules ']' ++ sed -rn 's/^spec:[[:space:]]+([^[:space:]].*)/\1/p' /usr/src/tmp/update.sh.Y8Y0oIg02p/rules ++ sed 's/[[:space:]]\+$//' + value=.gear/linux-firmware.spec + '[' -n .gear/linux-firmware.spec ']' ++ printf %s .gear/linux-firmware.spec ++ wc -l + '[' 0 -le 0 ']' + set_var_value filename value + eval 'filename="${value-}"' ++ filename=.gear/linux-firmware.spec + '[' -n .gear/linux-firmware.spec ']' + check_pathname spec .gear/linux-firmware.spec + local name=spec + shift + local value=.gear/linux-firmware.spec + shift + '[' -n .gear/linux-firmware.spec ']' + '[' .gear/linux-firmware.spec '!=' .. ']' + '[' -n .gear/linux-firmware.spec ']' + '[' -n .gear/linux-firmware.spec ']' + '[' -n .gear/linux-firmware.spec ']' + '[' -n .gear/linux-firmware.spec ']' + set_var_value specfile filename + eval 'specfile="${filename-}"' ++ specfile=.gear/linux-firmware.spec + '[' -s .gear/linux-firmware.spec ']' + cleanup_workdir + '[' -z /usr/src/tmp/update.sh.Y8Y0oIg02p ']' + rm -rf -- /usr/src/tmp/update.sh.Y8Y0oIg02p + workdir= + uninstall_cleanup_handler + trap - EXIT HUP PIPE INT QUIT TERM + __cleanup_handler_name= + '[' -z .gear/linux-firmware.spec ']' + '[' -z .gear/linux-firmware.spec ']' + '[' -s .gear/linux-firmware.spec ']' + get_NVR_from_spec .gear/linux-firmware.spec + local spec=.gear/linux-firmware.spec + shift ++ sed '/^name:[[:space:]]*/I!d;s///;q' .gear/linux-firmware.spec ++ sed 's/[[:space:]]\+$//' + spec_name=firmware-linux ++ sed '/^\(epoch\|serial\):[[:space:]]*/I!d;s///;q' .gear/linux-firmware.spec ++ sed 's/[[:space:]]\+$//' + spec_epoch= ++ sed '/^version:[[:space:]]*/I!d;s///;q' .gear/linux-firmware.spec ++ sed 's/[[:space:]]\+$//' + spec_version=20250109 ++ sed '/^release:[[:space:]]*/I!d;s///;q' .gear/linux-firmware.spec ++ sed 's/[[:space:]]\+$//' + spec_release=alt1 + expand_rpm_macros .gear/linux-firmware.spec spec_name + local spec=.gear/linux-firmware.spec + shift + local var_name=spec_name + shift + local var_value + set_var_value var_value spec_name + eval 'var_value="${spec_name-}"' ++ var_value=firmware-linux + '[' -n firmware-linux ']' + '[' -z firmware-linux ']' + return 0 + expand_rpm_macros .gear/linux-firmware.spec spec_epoch + local spec=.gear/linux-firmware.spec + shift + local var_name=spec_epoch + shift + local var_value + set_var_value var_value spec_epoch + eval 'var_value="${spec_epoch-}"' ++ var_value= + '[' -n '' ']' + return 0 + expand_rpm_macros .gear/linux-firmware.spec spec_version + local spec=.gear/linux-firmware.spec + shift + local var_name=spec_version + shift + local var_value + set_var_value var_value spec_version + eval 'var_value="${spec_version-}"' ++ var_value=20250109 + '[' -n 20250109 ']' + '[' -z 20250109 ']' + return 0 + expand_rpm_macros .gear/linux-firmware.spec spec_release + local spec=.gear/linux-firmware.spec + shift + local var_name=spec_release + shift + local var_value + set_var_value var_value spec_release + eval 'var_value="${spec_release-}"' ++ var_value=alt1 + '[' -n alt1 ']' + '[' -z alt1 ']' + return 0 + '[' -n firmware-linux -o -n 20250109 ']' + last=20250109 + git fetch -n upstream main ++ git log -n1 --pretty=%ad:%h --date=format:%Y%m%d upstream/main + new=20250113:a28a9226 + new_hash=a28a9226 + new=20250113 + '[' -n 20250109 -a -n 20250113 ']' + case "$new" in + echo 'got new commits up to a28a9226' got new commits up to a28a9226 + git pull --ff . upstream/main fatal: detected dubious ownership in repository at './.git' To add an exception for this directory, call: git config --global --add safe.directory ./.git fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.