diff options
author | adamw <adamw@FreeBSD.org> | 2004-10-12 20:12:51 +0000 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2004-10-12 20:12:51 +0000 |
commit | e73c769729c2173d6ba185acfe528300c2256231 (patch) | |
tree | b9de6a9d58ce6fff416682b9880f8b0c44bbe0c7 /sysutils/bpm/files | |
parent | f8a32518ef14272a28b97926c5394f8de07dd2f3 (diff) | |
download | FreeBSD-ports-e73c769729c2173d6ba185acfe528300c2256231.zip FreeBSD-ports-e73c769729c2173d6ba185acfe528300c2256231.tar.gz |
Enable bpm to grok the new INDEX format with extra fields.
Submitted by: maintainer
Diffstat (limited to 'sysutils/bpm/files')
-rw-r--r-- | sysutils/bpm/files/patch-src::refresh.c | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sysutils/bpm/files/patch-src::refresh.c b/sysutils/bpm/files/patch-src::refresh.c index 03b9c05..be123be 100644 --- a/sysutils/bpm/files/patch-src::refresh.c +++ b/sysutils/bpm/files/patch-src::refresh.c @@ -1,5 +1,5 @@ ---- src/refresh.c.orig Tue Aug 24 15:18:57 2004 -+++ src/refresh.c Tue Aug 24 15:20:12 2004 +--- src/refresh.c.orig Tue Aug 24 02:40:08 2004 ++++ src/refresh.c Tue Oct 12 12:31:32 2004 @@ -62,7 +62,11 @@ __RCSID("$Id: refresh.c,v 1.32 2004/08/24 02:40:08 sethk Exp $"); @@ -27,7 +27,23 @@ #endif /* DEBUG */ return FALSE; } -@@ -320,7 +326,6 @@ +@@ -195,12 +201,9 @@ + + for (i = 0; i < PFIELD_NFIELD; ++i) + { +- if (i < PFIELD_NFIELD - 1) +- { +- if (!(sp = strchr(line, '|'))) +- break; +- *sp++ = '\0'; +- } ++ if (!(sp = strchr(line, '|')) && i < PFIELD_NFIELD - 1) ++ break; ++ *sp++ = '\0'; + + switch (i) + { +@@ -320,7 +323,6 @@ if (_refresh_index_parse(ln, portdp, rdp) != TRUE) { |