summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorbmah <bmah@FreeBSD.org>2000-09-15 04:16:20 +0000
committerbmah <bmah@FreeBSD.org>2000-09-15 04:16:20 +0000
commit829e892a2ee9371585915bd825d2f6ba541ff1c9 (patch)
tree0f4eaa99bf56611ec30644f83b9924b05681fc39 /usr.sbin/pkg_install
parent9a01225006bf773df6c594b4763a45b245fa65b4 (diff)
downloadFreeBSD-src-829e892a2ee9371585915bd825d2f6ba541ff1c9.zip
FreeBSD-src-829e892a2ee9371585915bd825d2f6ba541ff1c9.tar.gz
pkg_version(1) will now distinguish between the different cases where
the exact relationship between an installed package and its corresponding entry in the index file can't be determined. Submitted by: Mark Ovens <marko@freebsd.org>
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/version/pkg_version.119
-rwxr-xr-xusr.sbin/pkg_install/version/pkg_version.pl4
2 files changed, 16 insertions, 7 deletions
diff --git a/usr.sbin/pkg_install/version/pkg_version.1 b/usr.sbin/pkg_install/version/pkg_version.1
index d104748..741ef62 100644
--- a/usr.sbin/pkg_install/version/pkg_version.1
+++ b/usr.sbin/pkg_install/version/pkg_version.1
@@ -55,15 +55,23 @@ in the index.
The installed version of the package is newer than listed in the
index.
.It Li ?
-The relationship between the installed version of a package and the
-index file could not be determined. A common reason for this message
-is that there are multiple versions of a particular software package
-installed, or that multiple versions are listed in the index file.
+The installed package does not appear in the index.
+This could be due to an out of date index or a package taken from a PR
+that has not yet been committed.
+.It Li *
+There are multiple versions of a particular software package
+installed or there are multiple versions of a package listed in
+the index file.
Examples from the
.Fx
ports collection are the Tcl toolkit or the
.Tn EMACS
editor.
+.It Li !
+The installed package exists in the index but for some reason,
+.Nm
+was unable to compare the version number of the installed package
+with the corresponding entry in the index.
.Sh OPTIONS
.Nm
supports several command-line arguments:
@@ -140,7 +148,8 @@ suggestions, and then cut-and-paste (or retype) the commands you want to run.
.An Bruce A. Mah Aq bmah@FreeBSD.org
.Sh CONTRIBUTORS
.An Nik Clayton Aq nik@FreeBSD.org ,
-.An Dominic Mitchell Aq dom@palmerharvey.co.uk
+.An Dominic Mitchell Aq dom@palmerharvey.co.uk ,
+.An Mark Ovens Aq marko@FreeBSD.org
.Sh BUGS
There should be a better way of dealing with packages that
can have more than one installed version.
diff --git a/usr.sbin/pkg_install/version/pkg_version.pl b/usr.sbin/pkg_install/version/pkg_version.pl
index aed6bcc..7b3a58b 100755
--- a/usr.sbin/pkg_install/version/pkg_version.pl
+++ b/usr.sbin/pkg_install/version/pkg_version.pl
@@ -306,7 +306,7 @@ foreach $packageName (sort keys %currentPackages) {
$packagePath = $indexPackages{$packageName}{'path'};
if (($indexRefcount > 1) || ($currentRefcount > 1)) {
- $versionCode = "?";
+ $versionCode = "*";
$Comment = "multiple versions (index has $indexVersion)";
$Comment =~ s/\|/,/g;
}
@@ -332,7 +332,7 @@ foreach $packageName (sort keys %currentPackages) {
$Comment = "succeeds index (index has $indexVersion)";
}
else {
- $versionCode = "?";
+ $versionCode = "!";
$Comment = "Comparison failed";
}
}
OpenPOWER on IntegriCloud