ALT Linux Bugzilla – #1006
make possible to generate the list even if the traced process doesn\'t want to finish
Last modified: 2003-08-25 15:18:31
You need to
before you can comment on or make changes to this bug.
I wanted to get the list of packages mozilla uses when it is run, but for some
reason mozilla didn\'t want to finish when it was traced. So I modified the
scripts a little to allow the user to use SIGQUIT (C-\\) to quit packagereq and
to generate the list based on the information available by that moment.
Also I made it work faster by using a single call to rpm in packagereq.
The patch is attached, perhaps some changes are reasonable.
The newly attached patch makes it work even more faster (substantially faster
-- a user like me can feel it): the list of packges is sorted (sort -u) before
processing it in the loop in packagereq.
Implemented in rpm-utils-0.5.0-alt1
Now it fast!
One hunk has not been applied. Without this, I\'m not able to quit \'packagereq mozilla\' with generation of the list of used packages.
--- /usr/bin/packagereq.orig Sun Jun 16 17:44:14 2002
+++ /usr/bin/packagereq Sun Jun 16 19:21:37 2002
@@ -111,7 +111,8 @@
-trap \'Exit \' SIGHUP SIGINT SIGQUIT SIGTERM EXIT
+trap \'Exit \' SIGHUP SIGINT SIGTERM EXIT
+trap \'\' SIGQUIT
\"$FILEREQ\" \"$REQFILE\" \"$@\"
Applied in 0.5.2-alt1