Now, it is pretty tedious to type in the bug number when downloading the log file. I have finally managed to script it. It works like this:
buglog --install will install a Konqueror action (in ~/.kde/share/apps/konqueror/servicemenus).
In Konqueror, right-click an attachment, select Actions / Copy Bugzilla log. (A debugging xterm opens). The attachment is downloaded to ~/logs/$BUGNUMBER-$FILENAME.
Or just call buglog attachment-url
Reading attachment metadata
You are using an old browser
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32385 100 32385 0 0 19380 0 0:00:01 0:00:01 --:--:-- 83898
Reading attachment data > /home/mvidner/logs/29751-xkbd-cz.png
You are using an old browser
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6714 100 6714 0 0 5562 0 0:00:01 0:00:01 --:--:-- 2678k
Waiting 30 seconds, press Enter to finish now.
Enjoy and improve. Especially let me know if you know how to integrate this with other browsers than Konqueror.
See a previous post about bnc_curl, a required script to automate the iChain authentication in Novell Bugzilla.
Also thanks to our Bugzilla admins who have meanwhile built in automatic numbering of attachments. I still think my code is better - say NIH! :)
Download the script.
No comments:
Post a Comment