Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pkg_install/admin Oops; the increment needs to be i...
details: https://anonhg.NetBSD.org/src/rev/9d8bc39633de
branches: trunk
changeset: 499742:9d8bc39633de
user: mycroft <mycroft%NetBSD.org@localhost>
date: Tue Nov 28 05:23:35 2000 +0000
description:
Oops; the increment needs to be in check1pkg() for the case where the user
specifies a list.
diffstat:
usr.sbin/pkg_install/admin/main.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r 1e61191d5b2a -r 9d8bc39633de usr.sbin/pkg_install/admin/main.c
--- a/usr.sbin/pkg_install/admin/main.c Tue Nov 28 05:21:57 2000 +0000
+++ b/usr.sbin/pkg_install/admin/main.c Tue Nov 28 05:23:35 2000 +0000
@@ -1,8 +1,8 @@
-/* $NetBSD: main.c,v 1.15 2000/11/28 05:21:57 mycroft Exp $ */
+/* $NetBSD: main.c,v 1.16 2000/11/28 05:23:35 mycroft Exp $ */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: main.c,v 1.15 2000/11/28 05:21:57 mycroft Exp $");
+__RCSID("$NetBSD: main.c,v 1.16 2000/11/28 05:23:35 mycroft Exp $");
#endif
/*
@@ -144,6 +144,7 @@
}
free_plist(&Plist);
fclose(f);
+ pkgcnt++;
}
static void
@@ -255,10 +256,9 @@
}
free_plist(&Plist);
fclose(f);
+ pkgcnt++;
chdir("..");
-
- pkgcnt++;
}
closedir(dp);
pkgdb_close();
@@ -299,8 +299,6 @@
printf(".");
chdir("..");
-
- pkgcnt++;
}
closedir(dp);
pkgdb_close();
Home |
Main Index |
Thread Index |
Old Index