This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH gnatsweb.pl wrt to optimization/9086: Missing attachment for#9085


On Sat, 28 Dec 2002, Neil Booth wrote:
> j.vanbemmel@home.nl wrote:-
>
>> >Environment:
>> cygwin
>> >Description:
>> Attachement for bugreport #9085
>>
>> (I pressed 'submit', forgot to set Submitter-Id, and then
>>  it reset my attachement without me noticing it...)
>
> Now we (I) know what causes this.  Can we disable this idiocy in GNATS?

I don't know how to disable it (or, I believe we might need to hack
gnatsweb quite a bit to work around this problem).

The following patch should avoid this problem in a slightly different
way, and closer to the root of the actual problems.

Gerald

Try another way to default Submitter-Id to 'net' when submitting new PRs.

Index: gnatsweb.pl
===================================================================
RCS file: /cvs/gcc/wwwdocs/cgi-bin/gnatsweb.pl,v
retrieving revision 1.54
retrieving revision 1.56
diff -u -3 -p -r1.54 -r1.56
--- gnatsweb.pl	23 Nov 2002 01:15:29 -0000	1.54
+++ gnatsweb.pl	29 Dec 2002 18:13:11 -0000	1.56
@@ -21,10 +21,6 @@
 $site_gnats_host = 'localhost';
 $site_gnats_port = 1529;

-#GCC-LOCAL begin.
-$submitter_id = 'net';
-#GCC-LOCAL end.
-
 # Set to true if you compiled gnats with GNATS_RELEASE_BASED defined.
 $site_release_based = 0;

@@ -538,6 +534,9 @@ sub sendpr
     $default = 'serious'                   if /Severity/;
     $default = 'medium'                    if /Priority/;
     $default = $global_prefs{'Submitter-Id'} || 'unknown' if /Submitter-Id/;
+    #GCC-LOCAL begin.
+    $default = 'net' if /Submitter-Id/;
+    #GCC-LOCAL end.
     $default = $global_prefs{'Originator'} if /Originator/;
     $default = grep(/^unknown$/i, @category) ? "unknown" : $category[0]
                                            if /Category/;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]