Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2013 00:41:42 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Michael Gmelin <freebsd@grem.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Question on updating pkg
Message-ID:  <20131126234141.GB50106@ithaqua.etoilebsd.net>
In-Reply-To: <20131126230507.11b5b8f6@bsd64.grem.de>
References:  <20131126230507.11b5b8f6@bsd64.grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--K8nIJk4ghYZn606h
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 26, 2013 at 11:05:07PM +0100, Michael Gmelin wrote:
> Maybe this has been answered before, but I stumbled over it numerous
> times:
>=20
> When pkg needs an update, it's performed first and pkg exits just ok,
> but the original action wouldn't be done. This is a little bit
> confusing when running it manually and potentially harmfully in a
> scripted context.
>=20
> Thanks,
> Michael
>=20
>=20
> Example:
> $ sudo pkg install git
> Updating repository catalogue
> digests.txz
>  100%  996KB 996.1KB/s 996.1KB/s   00:01
>  packagesite.txz
>  100% 5555KB   5.4MB/s   3.8MB/s   00:01 Incremental update completed,
>  0 packages processed: 11200 packages updated, 709 removed and 135
>  added. New version of pkg detected; it needs to be installed first.
>  After this upgrade it is recommended that you do a full upgrade using:
>  'pkg upgrade'
>=20
> The following 1 packages will be installed:
>=20
>         Upgrading pkg: 1.1.4_8 -> 1.1.4_10
>=20
> The installation will require 2 kB more space
>=20
> 1 MB to be downloaded
>=20
> Proceed with installing packages [y/N]: y
> pkg-1.1.4_10.txz
> 100% 1649KB   1.6MB/s   1.6MB/s   00:01 Checking integrity... done
> [1/1] Upgrading pkg from 1.1.4_8 to 1.1.4_10... done
>=20
> $ git
> bash: git: command not found
>=20
> --=20
> Michael Gmelin
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"

This has been addressed by pkg 1.2, now the process initially asked for is
automatically restarted,

regards,
Bapt

--K8nIJk4ghYZn606h
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlKVMbUACgkQ8kTtMUmk6EzwWACdGK/aCpyOPPSu5FlaIH8Y1Y08
7K8AoIeOYkkV6mz15GHfIkVPkcICYZCJ
=ArsH
-----END PGP SIGNATURE-----

--K8nIJk4ghYZn606h--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131126234141.GB50106>