From owner-freebsd-pkg@freebsd.org Fri Oct 2 07:06:37 2015 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC871A0D4B3 for ; Fri, 2 Oct 2015 07:06:37 +0000 (UTC) (envelope-from markoml@markoturk.info) Received: from vps.markoturk.info (vps.markoturk.info [95.154.208.14]) by mx1.freebsd.org (Postfix) with ESMTP id 9D16217A9 for ; Fri, 2 Oct 2015 07:06:37 +0000 (UTC) (envelope-from markoml@markoturk.info) Received: by vps.markoturk.info (Postfix, from userid 1001) id D6A1A273B4; Fri, 2 Oct 2015 08:59:11 +0200 (CEST) Date: Fri, 2 Oct 2015 08:59:11 +0200 From: Marko Turk To: freebsd-pkg@freebsd.org Subject: Interrupted 'pkg update' problem Message-ID: <20151002065911.GB892@vps.markoturk.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1LKvkjL3sHcu1TtY" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Oct 2015 07:06:37 -0000 --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--