New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%transfiletriggerin does not return file list #644
Comments
With -p file triggers, rpm.next_file() is the right thing to do, -p scriptlets are not forked currently so the stdin is that of rpm itself. What rpm version is this? File triggers are known to be rather buggy prior to rpm 4.13.1 (and I'm quite positive there are more lurking still) |
@pmatilai I'm running here rpm-4.14.2.1-7.x86_64 |
Right, this rings a bell: those pre-existing files invoke triggers on purpose, see #386 |
@pmatilai Sorry i can not confirm that rpm.next_file() returns files from current transaction. Maybe this is because my triggers dir is different that install dir ?
foo.rpm does carry more files in different directory, but these are not listed on above call, which is quite important to me. |
Anyways i've fixed this. Error was on my side. Thanks for your time. |
Hi,
i've a script in lua:
%transfiletriggerin -P 900901 -p <lua> -- /usr/share/foo
foo.spec file installs many files in /usr/share/foo
I'd like to catch that all the files which are now installed by foo.rpm using lua script in %transfiletriggerin
I've tired to carch arg[] from 0 to 6 and none of them returned file list.
Even stdin is empty
I've tried poorly documented rpm.next_file
Above returned list of files existing in /usr/share/foo already, not those which are about to be installed in foo.rpm
Looking for a help.
The text was updated successfully, but these errors were encountered: