diff options
author | flz <flz@FreeBSD.org> | 2008-06-12 15:21:13 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2008-06-12 15:21:13 +0000 |
commit | 26109e3a63094d7f2042b1895dd29802c1442870 (patch) | |
tree | ff8a06db36e1ada93d3df97ece360bb71225f993 /usr.sbin/pkg_install/updating | |
parent | b12c26cea11baab5e938d590a2b623c2e6106f79 (diff) | |
download | FreeBSD-src-26109e3a63094d7f2042b1895dd29802c1442870.zip FreeBSD-src-26109e3a63094d7f2042b1895dd29802c1442870.tar.gz |
- add: Keep dependent packages too if -K is specified.
- updating: terminating '\n' is not part of the package origin.
- bump PKG_INSTALL_VERSION to 20080612.
PR: bin/119368 [1], bin/124459 [2]
Submitted by: gcooper [1], Beat Gatzi <beat@chruetertee.ch> [2]
MFC after: 3 days
Diffstat (limited to 'usr.sbin/pkg_install/updating')
-rw-r--r-- | usr.sbin/pkg_install/updating/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/updating/main.c b/usr.sbin/pkg_install/updating/main.c index 238eee3..e189c01 100644 --- a/usr.sbin/pkg_install/updating/main.c +++ b/usr.sbin/pkg_install/updating/main.c @@ -175,6 +175,8 @@ main(int argc, char *argv[]) if((curr = (INSTALLEDPORT *) malloc(sizeof(INSTALLEDPORT))) == NULL) (void)exit(EXIT_FAILURE); + if (pname[strlen(pname) - 1] == '\n') + pname[strlen(pname) - 1] = '\0'; strlcpy (curr->name, pname, strlen(pname)+1); curr->next = head; head = curr; |