public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
* patch for wwwgnats.pl for use with gnats-3.112.1
@ 2000-05-09  7:24 Hans Drexler
  0 siblings, 0 replies; only message in thread
From: Hans Drexler @ 2000-05-09  7:24 UTC (permalink / raw)
  To: gnats-devel

Hi,

Last week I upgraded from gnats-3.107b to gnats-3.112.1 (FreeBSD 4.0
STABLE). We use the wwwgnats package to view our GNATS database. The
package is (I think) very old, but it worked!  Anyway, after the
upgrade we couldn't edit PR's using our browsers anymore. After some
searching I found out that a small change in the file "libgnats.pl" solves
the problem. If anybody is interested I put the changed lines below (not a
patch, sorry!).

Hans Drexler


File libgnats.pl, line 260

Old text:

    chop($_ = <PREDIT>);
    close(PREDIT);
    if ($_ ne "") {
        if (!/exists/) {
            s/.*by //g; tr/_/ /;
            return "Problem report $semipr is being edited by $_.\n";
        } else {
            return "GNATS is currently locked, try again in a moment\n";
        }
    }

New text: (three lines added, 1 changed)

    chop($_ = <PREDIT>);
    close(PREDIT);
    if ($_ ne "") {
        if (/From /) {
            return "";
        }
        elsif (!/exists/) {
            s/.*by //g; tr/_/ /;
            return "Problem report $semipr is being edited by $_.\n";
        } else {
            return "GNATS is currently locked, try again in a moment\n";
        }
    }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-09  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-09  7:24 patch for wwwgnats.pl for use with gnats-3.112.1 Hans Drexler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).