Hi there,

Package: mini-dinstall
Version: 0.6.29
Severity: normal
Tags: upstream

Dear Maintainer,

currently, if a package is installed more than once, without changing the
version of the package, an incorrect "Packages" file is generated by
mini-dinstall.

Subsequently, APT errors out with "size mismatch" when trying to install that
package.


I can confirm this bug is still present.

Re-installing the same package_version combination is a common scenario if mini-dinstall is used to provide a development repository (arguably the main use
case for mini-dinstall).

Apparently, the size is recorded in the <repository_name>.db file when a version is first installed in the repository, but never updated for that version
afterwards, even if the version is re-installed.

My current workaround is to delete the binary <repository>.db file in a
"pre_install_script" hook.

For the workaround, in the file ~/.dput.cf I have this:

        pre_upload_command = rm <path to repo.db>

Although I don't like this solution for large repos as it will generate the db file every time a package bundle is uploaded.

A permanent fix would require a patch to the upstream source, so that it will always record the size information for a package in the binary database, even if
the package version is already present.

Nice solution, any updates on this?


Cheers,
Manuel


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to