pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files pkg_install-20091008:
details: https://anonhg.NetBSD.org/pkgsrc/rev/d393067331e4
branches: trunk
changeset: 565764:d393067331e4
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Oct 08 16:16:12 2009 +0000
description:
pkg_install-20091008:
- Fix German accent
- Don't dereference a null pointer for pkg_admin add
diffstat:
pkgtools/pkg_install/files/admin/main.c | 14 ++++++++++----
pkgtools/pkg_install/files/lib/version.h | 4 ++--
2 files changed, 12 insertions(+), 6 deletions(-)
diffs (60 lines):
diff -r 014a09247299 -r d393067331e4 pkgtools/pkg_install/files/admin/main.c
--- a/pkgtools/pkg_install/files/admin/main.c Thu Oct 08 16:12:41 2009 +0000
+++ b/pkgtools/pkg_install/files/admin/main.c Thu Oct 08 16:16:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.56 2009/10/07 12:53:26 joerg Exp $ */
+/* $NetBSD: main.c,v 1.57 2009/10/08 16:16:12 joerg Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -7,7 +7,7 @@
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-__RCSID("$NetBSD: main.c,v 1.56 2009/10/07 12:53:26 joerg Exp $");
+__RCSID("$NetBSD: main.c,v 1.57 2009/10/08 16:16:12 joerg Exp $");
/*-
* Copyright (c) 1999-2009 The NetBSD Foundation, Inc.
@@ -253,7 +253,7 @@
iterate_pkg_db(add_pkg, &count);
printf("\n");
- printf("Stored %zu file%s and %zu explizit director%s"
+ printf("Stored %zu file%s and %zu explicit director%s"
" from %zu package%s in %s.\n",
count.files, count.files == 1 ? "" : "s",
count.directories, count.directories == 1 ? "y" : "ies",
@@ -517,8 +517,14 @@
pkgdb_dump();
} else if (strcasecmp(argv[0], "add") == 0) {
+ struct pkgdb_count count;
+
+ count.files = 0;
+ count.directories = 0;
+ count.packages = 0;
+
for (++argv; *argv != NULL; ++argv)
- add_pkg(*argv, NULL);
+ add_pkg(*argv, &count);
} else if (strcasecmp(argv[0], "delete") == 0) {
argv++; /* "delete" */
while (*argv != NULL) {
diff -r 014a09247299 -r d393067331e4 pkgtools/pkg_install/files/lib/version.h
--- a/pkgtools/pkg_install/files/lib/version.h Thu Oct 08 16:12:41 2009 +0000
+++ b/pkgtools/pkg_install/files/lib/version.h Thu Oct 08 16:16:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: version.h,v 1.138 2009/10/07 12:53:27 joerg Exp $ */
+/* $NetBSD: version.h,v 1.139 2009/10/08 16:16:12 joerg Exp $ */
/*
* Copyright (c) 2001 Thomas Klausner. All rights reserved.
@@ -27,6 +27,6 @@
#ifndef _INST_LIB_VERSION_H_
#define _INST_LIB_VERSION_H_
-#define PKGTOOLS_VERSION "20091006"
+#define PKGTOOLS_VERSION "20091008"
#endif /* _INST_LIB_VERSION_H_ */
Home |
Main Index |
Thread Index |
Old Index