[Bug 307494] [NEW] Generates incorrect Packages file

KM ubuntubug at acrasis.net
Fri Dec 12 17:22:26 UTC 2008


Public bug reported:

Binary package hint: mini-dinstall

nick at nitrogen$ lsb_release -rd
Description:	Ubuntu 8.10
Release:	8.10
nick at nitrogen$ apt-cache policy mini-dinstall
mini-dinstall:
  Installed: 0.6.25ubuntu1
  Candidate: 0.6.25ubuntu1
  Version table:
 *** 0.6.25ubuntu1 0
        500 http://us.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

See http://ubuntuforums.org/showthread.php?p=6350610

The bug might be in apt-ftparchive.  The problem is in the use of a
database file in the call made by mini-dinstall to apt-ftparchive to
generate the Packages file, e.g.:

Dec 12 08:50:06 mini-dinstall [1103288656] DEBUG: Running: apt-
ftparchive packages stable --db stable.db

The database appears to retain information from a previous version of
the package.  The generated Packages file therefore does not match the
uploaded package, because it describes the earlier version and apt-get
refuses to install it.  'apt-get install <package>' fails on a size
mismatch or on an incorrect dependency (incorrect in the older version,
fixed in the newer version).

A contributing factor might be that I routinely upload changed or fixed
packages without incrementing the version number on my package, to test
packages while in development.  I do not want to have to increment the
version every time I change and redeploy a package in development.

As a workaround, I set my dput post_upload_command to remove the
database file after running mini-dinstall.  My local package archive is
now functional again.

Neither mini-dinstall nor apt-ftparchive appear to offer guidance on the
use of the database file, so I cannot tell what might be a more correct
solution.

** Affects: mini-dinstall (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Generates incorrect Packages file
https://bugs.launchpad.net/bugs/307494
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list