Date: Fri, 2 Oct 2015 08:59:11 +0200 From: Marko Turk <markoml@markoturk.info> To: freebsd-pkg@freebsd.org Subject: Interrupted 'pkg update' problem Message-ID: <20151002065911.GB892@vps.markoturk.info>
next in thread | raw e-mail | index | archive | help
--1LKvkjL3sHcu1TtY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, if pkg update is interrupted (with e.g. ctrl+c) while pkg is processing entries, the pkg DB is not complete and pkg install will fail to find some packages. Pkg does not check if DB update was interrupted. Would it be possible to add some check and restart the update if it was interrupted? Example output: root@projects:~ # pkg install cmus Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. The following 3 package(s) will be affected (of 0 checked): New packages to be INSTALLED: cmus: 2.6.0_2 flac: 1.3.1 libmad: 0.15.1b_6 The process will require 3 MiB more space. 643 KiB to be downloaded. Proceed with this action? [y/N]: n root@projects:~ # pkg update -f Updating FreeBSD repository catalogue... [projects.enterprise.my] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01 [projects.enterprise.my] Fetching packagesite.txz: 100% 5 MiB 691.6kB/s 00:08 Processing entries: 9%^C --- interrupted while processing root@projects:~ # pkg install cmus Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. pkg: No packages available to install matching 'cmus' have been found in the repositories root@projects:~ # BR, Marko --1LKvkjL3sHcu1TtY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWDis/AAoJEDcRe7P/w1sjBXIP/RPQUEQzb7fKTQ9EbrwVPrr9 w/yJzovRTvARsjITQnCKklTF6OHTqVyBDbq7IJHy5F17o1fdsyK4prCF1/5ixYB/ q1hgOcVbTNqsgIVy4VjNsVosuubxgTT1dHzjt3oJTMH1H3TWLQy/75HiqDfBDprK FfQ/BNfqjpCa9QnmjuclVWYOvmtJfFhTufesqcw4qLNnNjBQSTykQOjEGHbXdtR9 JajcMV10Fla+nOcIP4abqb0QDsfs+1hRUhlvfD4hSxTue8Rdy607+r9XAikt2Dac TvLacpCL7T55QdQCuBHRQ1UFJNZ7E4XxMnkXxxJDZvFZjCG7lAd80BHP8UlXZKWE C5buNgq/pbRe5FBDiZQS4QNmQl1v6G8FyDPFPeK19IJ0RvJczelvD6FZgsMveQmg HploWoA5C8luF4Cg4ZCLJMjkmYhZsLxp0Bfnre03j4mOn15faV1bf0zwOZqwUXvC 5q++i/AlCC1uTu/OFfbUxdBMz1syYLkR5rnA/gBbBla/zx1w0IIff0m7+4zH13tM BjK3syqYBRenC28HGVBGcD2aqZTZ/jvrENim9cW0t0LpWwCjo+avoNtNQJqdCgug tqmBf8HoDUoUqE5HPumeXtP6XHQxoucs9wRJ0om6tbHMNTe9lKUbanJca35b6pBR 79oEhMpl5Ba12BphHo6S =BRYK -----END PGP SIGNATURE----- --1LKvkjL3sHcu1TtY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151002065911.GB892>