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/add Reflect reality that pk...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e852ffb70e74
branches:  trunk
changeset: 571981:e852ffb70e74
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Feb 18 13:43:11 2010 +0000

description:
Reflect reality that pkg_add -uu == pkg_add -u.

diffstat:

 pkgtools/pkg_install/files/add/main.c    |   9 ++++-----
 pkgtools/pkg_install/files/add/pkg_add.1 |  26 ++++++++++++--------------
 2 files changed, 16 insertions(+), 19 deletions(-)

diffs (101 lines):

diff -r 4bf87eba4269 -r e852ffb70e74 pkgtools/pkg_install/files/add/main.c
--- a/pkgtools/pkg_install/files/add/main.c     Thu Feb 18 12:33:43 2010 +0000
+++ b/pkgtools/pkg_install/files/add/main.c     Thu Feb 18 13:43:11 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.24 2010/01/30 20:09:34 joerg Exp $  */
+/*     $NetBSD: main.c,v 1.25 2010/02/18 13:43:11 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.24 2010/01/30 20:09:34 joerg Exp $");
+__RCSID("$NetBSD: main.c,v 1.25 2010/02/18 13:43:11 joerg Exp $");
 
 /*
  *
@@ -123,12 +123,11 @@
 
                case 'U':
                        ReplaceSame = 1;
-                       if (!Replace)
-                               Replace = 1;
+                       Replace = 1;
                        break;
 
                case 'u':
-                       Replace++;
+                       Replace = 1;
                        break;
 
                case 'V':
diff -r 4bf87eba4269 -r e852ffb70e74 pkgtools/pkg_install/files/add/pkg_add.1
--- a/pkgtools/pkg_install/files/add/pkg_add.1  Thu Feb 18 12:33:43 2010 +0000
+++ b/pkgtools/pkg_install/files/add/pkg_add.1  Thu Feb 18 13:43:11 2010 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pkg_add.1,v 1.42 2010/01/30 20:09:34 joerg Exp $
+.\" $NetBSD: pkg_add.1,v 1.43 2010/02/18 13:43:11 joerg Exp $
 .\"
 .\" FreeBSD install - a package for the installation and maintenance
 .\" of non-core utilities.
@@ -17,7 +17,7 @@
 .\"
 .\"     @(#)pkg_add.1
 .\"
-.Dd January 30, 2010
+.Dd February 18, 2010
 .Dt PKG_ADD 1
 .Os
 .Sh NAME
@@ -162,8 +162,8 @@
 .It Fl u
 If the package that's being installed is already installed,
 an update is performed.
-If this is specified twice, then any dependent packages that are
-too old will also be updated to fulfill the dependency.
+Installed dependent packages are updated recursively, if they are too
+old to fulfill the dependencies of the to-be-installed version.
 See below for a more detailed description of the process.
 .It Fl V
 Print version number and exit.
@@ -224,15 +224,21 @@
 If it is,
 installation is terminated if the
 .Fl u
-option is not given.
+or
+.Fl U
+options are not given.
 .Pp
+If the same version is installed and
+.Fl U
+is not given, it is marked as manually installed and process stops.
 If the
 .Fl u
 option is given, it's assumed the package should be replaced by the
 new version instead.
 Before doing so, all packages that depend on the
 pkg being upgraded are checked if they also work with the new version.
-If that test is successful, replacing is prepared by moving an existing
+If that test is not successful, the dependent packages are updated first.
+The replacing is then prepared by moving an existing
 .Pa +REQUIRED_BY
 file aside (if it exists), and running
 .Xr pkg_delete 1
@@ -282,14 +288,6 @@
 an attempt is made to find and install it;
 if the missing package cannot be found or installed,
 the installation is terminated.
-If the
-.Fl u
-option was specified twice, any required packages that are installed,
-but which have a version number that is considered to be too old,
-are also updated.
-The dependent packages are found according to the normal
-.Ev PKG_PATH
-rules.
 .It
 If the package contains an
 .Ar install



Home | Main Index | Thread Index | Old Index