Welcome to CRUX bug tracking.
FS#620 - pkgadd reports a package as installed if disk space runs out while installing a prebuilt package
Attached to Project:
CRUX
Opened by K.Mandla (K.Mandla) - Friday, 13 August 2010, 00:44 GMT
Last edited by Fredrik Rinnestam (frinnst) - Tuesday, 19 September 2017, 22:08 GMT
Opened by K.Mandla (K.Mandla) - Friday, 13 August 2010, 00:44 GMT
Last edited by Fredrik Rinnestam (frinnst) - Tuesday, 19 September 2017, 22:08 GMT
|
DetailsHello. As mentioned here:
http://crux.nu/bugs/index.php?do=details&task_id=619 prt-get, possibly because of pkgadd, thinks a package is installed if disk space runs out while installing a prebuilt package. As discussed in the comments there, it's possible that pkgadd is reporting the package as installed even though it obviously encountered errors with disk space. The "installed" package needs to be removed and additional space freed before it can be correctly installed. Cheers and thanks. ;) |
This task depends upon
Closed by Fredrik Rinnestam (frinnst)
Tuesday, 19 September 2017, 22:08 GMT
Reason for closing: Implemented
Additional comments about closing: commit a11b0048057f80b7a8a936b8f56be9f2fd121e7e
pending release
Tuesday, 19 September 2017, 22:08 GMT
Reason for closing: Implemented
Additional comments about closing: commit a11b0048057f80b7a8a936b8f56be9f2fd121e7e
pending release
Cheers, deepthought
mkdir /var/cache/test{,-ro}
mkdir -p /var/cache/test/var/lib/pkg
touch /var/cache/test/var/lib/pkg/db
mount --bind -o ro /var/cache/test{,-ro}
mount --bind /var/cache/test{,-ro}/var/lib/pkg
pkgadd -r /var/cache/test-ro ...pkg ; echo $?
pkgadd -r /var/cache/test-ro ...pkg ; echo $?
if (archive_read_extract(archive, entry, flags) != ARCHIVE_OK) {
// If a file fails to install we just print an error message and
// continue trying to install the rest of the package.