[Webkit-unassigned] [Bug 26383] prepare-ChangeLog should have a --bug= argument and use it for url autofill
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 2 05:55:07 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=26383
------- Comment #5 from ddkilzer at webkit.org 2009-07-02 05:55 PDT -------
(From update of attachment 32163)
>+if ($bugNumber) {
>+ $bugURL = "https://bugs.webkit.org/show_bug.cgi?id=$bugNumber";
>+ my $bugXMLURL = "$bugURL&ctype=xml";
>+ # Perl has no built in XML processing, so we'll fetch and parse with curl and grep
>+ my $descriptionLine = `curl --silent "$bugXMLURL" | grep short_desc`;
>+ $descriptionLine =~ /<short_desc>(.*)<\/short_desc>/;
>+ $bugDescription = $1;
>+ print STDERR " Description from bug $bugNumber:\n \"$bugDescription\".\n";
>+}
It would be nice if you had used libwww-perl modules to fetch the URL instead
of shelling out to curl (to keep the script more portable), but I'm afraid
using libwww-perl would require much more than one line of code here.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list