svn commit: r301711 - in head/ports-mgmt/pkg: . files
Baptiste Daroussin
bapt at FreeBSD.org
Mon Jul 30 08:25:35 UTC 2012
Author: bapt
Date: Mon Jul 30 08:25:34 2012
New Revision: 301711
URL: http://svn.freebsd.org/changeset/ports/301711
Log:
Fix a regression appending newline to commments
Reported by: avilla
Added:
head/ports-mgmt/pkg/files/
head/ports-mgmt/pkg/files/patch-libpkg__pkg_manifest.c (contents, props changed)
Modified:
head/ports-mgmt/pkg/Makefile
Modified: head/ports-mgmt/pkg/Makefile
==============================================================================
--- head/ports-mgmt/pkg/Makefile Mon Jul 30 08:10:00 2012 (r301710)
+++ head/ports-mgmt/pkg/Makefile Mon Jul 30 08:25:34 2012 (r301711)
@@ -7,6 +7,7 @@
PORTNAME= pkg
DISTVERSION= 1.0-rc5
+PORTREVISION= 1
CATEGORIES= ports-mgmt
MASTER_SITES= LOCAL/portmgr \
http://files.etoilebsd.net/pkg/
Added: head/ports-mgmt/pkg/files/patch-libpkg__pkg_manifest.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/ports-mgmt/pkg/files/patch-libpkg__pkg_manifest.c Mon Jul 30 08:25:34 2012 (r301711)
@@ -0,0 +1,12 @@
+--- ./libpkg/pkg_manifest.c.orig 2012-07-30 01:08:44.000000000 +0200
++++ ./libpkg/pkg_manifest.c 2012-07-30 10:23:20.768918130 +0200
+@@ -189,8 +189,7 @@
+ {
+ int ret = EPKG_OK;
+
+- while (val->data.scalar.length > 1 &&
+- val->data.scalar.value[val->data.scalar.length - 2] == '\n' &&
++ while (val->data.scalar.length > 0 &&
+ val->data.scalar.value[val->data.scalar.length - 1] == '\n') {
+ val->data.scalar.value[val->data.scalar.length - 1] = '\0';
+ val->data.scalar.length--;
More information about the svn-ports-head
mailing list