Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package texinfo for openSUSE:Factory checked in at 2022-08-05 19:49:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/texinfo (Old) and /work/SRC/openSUSE:Factory/.texinfo.new.1521 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "texinfo" Fri Aug 5 19:49:32 2022 rev:65 rq:992724 version:6.8 Changes: -------- --- /work/SRC/openSUSE:Factory/texinfo/texinfo.changes 2022-04-27 21:40:58.988989108 +0200 +++ /work/SRC/openSUSE:Factory/.texinfo.new.1521/texinfo.changes 2022-08-05 19:49:33.949223623 +0200 @@ -1,0 +2,17 @@ +Wed Aug 3 08:30:34 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- In case of an update of package info: do never remove existing + info page from dir file (boo#1201852) + +------------------------------------------------------------------- +Fri Jul 29 12:14:22 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- Do lua scripting only once for execute() function + +------------------------------------------------------------------- +Wed Jul 27 07:39:30 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- Check for filetrigger lua scriplets if rpm.execute() as function + call is given and used this + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ texinfo.spec ++++++ --- /var/tmp/diff_new_pack.jGkmHN/_old 2022-08-05 19:49:35.049226719 +0200 +++ /var/tmp/diff_new_pack.jGkmHN/_new 2022-08-05 19:49:35.053226730 +0200 @@ -129,7 +129,7 @@ if cmp %{buildroot}%{_mandir}/man1/pdftexi2dvi.1 %{buildroot}%{_mandir}/man1/texi2pdf.1 then rm -vf %{buildroot}%{_mandir}/man1/pdftexi2dvi.1 - ln -sf texi2pdf.1.gz %{buildroot}%{_mandir}/man1/pdftexi2dvi.1.gz + ln -sf texi2pdf.1%{?ext_man} %{buildroot}%{_mandir}/man1/pdftexi2dvi.1%{?ext_man} fi %if !0%{?usrmerged} @@ -150,49 +150,48 @@ export LANG make %{?_smp_mflags} check -%filetriggerin -n info -p <lua> -- %{_infodir} --- TODO: replace with rpm.execute after rpm 4.15 -function execute(path, ...) +%global trigger_functions %{expand: +-- Check if rpm.execute() as function call is given +if type(rpm.execute) == "function" then + execute = rpm.execute +else + function execute(path, ...) local pid = posix.fork() - if pid == 0 then - posix.exec(path, ...) - io.write(path, ": exec failed: ", posix.errno(), "\n") - os.exit(1) - end if not pid then error(path .. ": fork failed: " .. posix.errno() .. "\n") - end + elseif pid == 0 then + assert(posix.exec(path, ...)) + else posix.wait(pid) + end + end end -- +} + +%filetriggerin -n info -p <lua> -- %{_infodir} +%trigger_functions file = rpm.next_file() while file do - if string.match(file, "%%.info%%.gz$") then + if string.match(file, "%%.info%%%{ext_info}$") then + stat = posix.stat(file) + if stat then execute("%{_bindir}/install-info", "--info-dir=%{_infodir}", file) end + end file = rpm.next_file() end %filetriggerun -n info -p <lua> -- %{_infodir} --- TODO: replace with rpm.execute after rpm 4.15 -function execute(path, ...) - local pid = posix.fork() - if pid == 0 then - posix.exec(path, ...) - io.write(path, ": exec failed: ", posix.errno(), "\n") - os.exit(1) - end - if not pid then - error(path .. ": fork failed: " .. posix.errno() .. "\n") - end - posix.wait(pid) -end --- +%trigger_functions file = rpm.next_file() while file do - if string.match(file, "%%.info%%.gz$") then + if string.match(file, "%%.info%%%{ext_info}$") then + stat = posix.stat(file) + if not stat then execute("%{_bindir}/install-info", "--quiet", "--delete", "--info-dir=%{_infodir}", file) end + end file = rpm.next_file() end @@ -231,7 +230,7 @@ %files -n info %defattr(-,root,root,0755) -%ghost %verify(not md5 size mtime) %{_infodir}/dir +%ghost %verify(not mode md5 size mtime) %{_infodir}/dir %if !0%{?usrmerged} /sbin/install-info %else