Interrupted 'pkg update' problem

Marko Turk markoml at markoturk.info
Fri Oct 2 07:06:37 UTC 2015


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 at 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 at 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 at 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 at projects:~ #


BR,
Marko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-pkg/attachments/20151002/d727bb47/attachment.bin>


More information about the freebsd-pkg mailing list