aptly icon indicating copy to clipboard operation
aptly copied to clipboard

Aptly snapshot verify misses "python:any"

Open markabey opened this issue 12 years ago • 5 comments

Aptly version 0.8 I made a snapshot, and have a package which depends on "python:any" and python present. Verifying it will say:

Loading packages...
Verifying...
Missing dependencies (1):
   python:any (>=2.7.1-0ubuntu2) [amd64]

However, "python" is present, and if I do "aptitude show python" it says that it provides python:any.

markabey avatar Nov 24 '14 15:11 markabey

@markabey thanks for reporting that. It's definitely a bug in dependency resolution engine.

smira avatar Nov 24 '14 16:11 smira

I ran into the same problem when downloading and installing python-pip and build-essential. Below is the package description for python-pip.

Package: python-pip
Priority: optional
Section: universe/python
Installed-Size: 468
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Python Modules Team <[email protected]>
Architecture: all
Version: 1.5.4-1
Depends: python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2), ca-certificates, python-colorama, python-distlib, python-html5lib, python-pkg-resources, python-setuptools (>= 0.6c1), python-six, python-requests
Recommends: build-essential, python-dev-all (>= 2.6)
Filename: pool/main/p/python-pip/python-pip_1.5.4-1_all.deb
Size: 97718
MD5sum: 8e1c420453fdf284e1ccc59adb219f97
SHA1: 31c72bbfbe09b2bed315ecb02325935231eb72de
SHA256: c27c58a2a4c72cbfacb694d7abd3afc54f85f4b4b5bade714d83fa4d0cc9343a
Description: alternative Python package installer
Description-md5: 8d21e4048f43043df36daaae334010b5
Homepage: http://www.pip-installer.org/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

I bounced around in the code to see if I can fix it myself, but was unsure about where to look. It must be in https://github.com/smira/aptly/blob/master/deb/package.go, not? Some pointers into the right direction would be appreciated @smira

freenerd avatar Mar 11 '15 17:03 freenerd

@freenerd dependency resolution code is here: https://github.com/smira/aptly/blob/master/deb/list.go#L256

I believe it should parse :any part there, but fix could be more complicated.

Some notes by @oCCtet here: https://groups.google.com/d/msg/aptly-discuss/CDXPwRamCTs/SsKPH8ABqgEJ

smira avatar Mar 11 '15 17:03 smira

Any updates on this?

hkdsun avatar Jun 22 '15 18:06 hkdsun

The commit/PR above should fix this issue.

rmedaer avatar Aug 13 '19 13:08 rmedaer