Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#15576 closed bug (duplicate)

Can't replace package with same name

Reported by: X512 Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Package Kit Version: R1/Development
Keywords: Cc:
Blocked By: #15068 Blocking:
Platform: All

Description

This is hrev53644.

When attempt to replace installed package with local package with same name and version error appear:

/Haiku/data/packages/haikuporter> pkgman install /Haiku/data/packages/haikuports/packages/mesa_swpipe-17.1.10-5-x86_64.hpkg
100% repochecksum-1 [65 bytes]
Validating checksum for Haiku...done.
100% repochecksum-1 [64 bytes]
Validating checksum for HaikuPorts...done.
The following changes will be made:
  in system:
    upgrade package mesa_swpipe-17.1.10-5 to 17.1.10-5 from local file
Continue? [yes/no] (yes) : 
[system] Applying changes ...
*** failed to commit transaction: Failed to change the package activation in packagefs: Name in use

Changing package version cause complete package rebuild and significantly increase development cycle time.

Change History (2)

comment:1 by diver, 5 years ago

Blocked By: 15068 added
Resolution: duplicate
Status: newclosed

in reply to:  description comment:2 by ttcoder, 5 years ago

Replying to X512:

Changing package version cause complete package rebuild and significantly increase development cycle time.

You could likely solve this with a simple script that calls rm on the installed hpkg and then mvs the new hpkg into place in packages/ (or mv directly in "replace target" mode, if that's less confusing for the package_daemon).

Note: See TracTickets for help on using tickets.