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. --- --- rpm-utils-0.4.3
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 @@ exit $RETVAL } -trap \'Exit \' SIGHUP SIGINT SIGQUIT SIGTERM EXIT +trap \'Exit \' SIGHUP SIGINT SIGTERM EXIT +trap \'\' SIGQUIT \"$FILEREQ\" \"$REQFILE\" \"$@\"
Applied in 0.5.2-alt1