diff options
| author | Bruce A. Mah <bmah@FreeBSD.org> | 2000-09-15 04:16:20 +0000 |
|---|---|---|
| committer | Bruce A. Mah <bmah@FreeBSD.org> | 2000-09-15 04:16:20 +0000 |
| commit | b8ffb8442a99acdc0335134bf020f92e9ff0aab3 (patch) | |
| tree | 51083f870ad08c2fa6f8c1f839fb526ca00d05aa | |
| parent | 5d7e2cbea626219949c7b2c43d453f1e005969af (diff) | |
Notes
| -rw-r--r-- | usr.sbin/pkg_install/version/pkg_version.1 | 19 | ||||
| -rwxr-xr-x | usr.sbin/pkg_install/version/pkg_version.pl | 4 |
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 d104748be8de..741ef6264bcc 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 aed6bcc6074f..7b3a58b8af91 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"; } } |
