diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2004-09-01 01:40:34 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2004-09-01 01:40:34 +0000 |
commit | b53f2958fef06605ab6547a7921008a5d0d78f84 (patch) | |
tree | d926d254fde1d9c8a41adfc09da2fe91e44d7916 /ports-mgmt/bpm | |
parent | 54d91f4e84bcccb5c95925e9ec7ca01be6811b6f (diff) | |
download | ports-b53f2958fef06605ab6547a7921008a5d0d78f84.tar.gz ports-b53f2958fef06605ab6547a7921008a5d0d78f84.zip |
Notes
Diffstat (limited to 'ports-mgmt/bpm')
-rw-r--r-- | ports-mgmt/bpm/Makefile | 1 | ||||
-rw-r--r-- | ports-mgmt/bpm/files/patch-src::refresh.c | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ports-mgmt/bpm/Makefile b/ports-mgmt/bpm/Makefile index b1166e268c1c..49448c85e5f0 100644 --- a/ports-mgmt/bpm/Makefile +++ b/ports-mgmt/bpm/Makefile @@ -7,6 +7,7 @@ PORTNAME= bpm PORTVERSION= 0.4.1b +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.meowfishies.com/code/bpm/ EXTRACT_SUFX= .tgz diff --git a/ports-mgmt/bpm/files/patch-src::refresh.c b/ports-mgmt/bpm/files/patch-src::refresh.c index b96fa00ecd8d..03b9c059749b 100644 --- a/ports-mgmt/bpm/files/patch-src::refresh.c +++ b/ports-mgmt/bpm/files/patch-src::refresh.c @@ -12,3 +12,26 @@ #define INDEX_MAXLN 4096 #define DB_DIR "/var/db/pkg" #define ITER_BYTES (128 * 1024) +@@ -183,10 +187,12 @@ + if (*sp == '|') + ++i; + +- if (i != (PFIELD_NFIELD - 1)) ++ if (i < (PFIELD_NFIELD - 1)) + { + #ifdef DEBUG +- warnx("invalid number of fields"); ++ warnx("invalid number of fields (%d should be %d)", ++ i + 1, ++ PFIELD_NFIELD); + #endif /* DEBUG */ + return FALSE; + } +@@ -320,7 +326,6 @@ + + if (_refresh_index_parse(ln, portdp, rdp) != TRUE) + { +- _refresh_portfree(portdp); + #ifdef DEBUG + warnx("%s:%u: invalid format", INDEX_FN, rdp->rd_linec); + #endif /* DEBUG */ |