[pacman-dev] add043.py: alpm_depcmp and provisions

Nagy Gabor ngaba at bibl.u-szeged.hu
Sat Nov 10 07:01:03 EST 2007


Give a look at the following pactest:
self.description = "provision>=1.0-2 needed"

p1 = pmpkg("pkg1", "1.0-2")
p1.depends = ["provision>=1.0-2"]

p2 = pmpkg("pkg2", "1.0-2")
p2.provides = ["provision"]
self.addpkg2db("local", p2)

self.args = "-A %s" % p1.filename()

This currently fails. IMHO this is a bug: alpm_depcmp uses the
package version in the "provision case" too (so if you change
p1.depends to "provision<=1.0-1", then the pactest will pass.)

This is a good time to ask you about versioned provisions again
(before fix):
Personally, I like the idea; and the implementation needs ~0 effort and
would cause ~0 slowdown; and would be 100% compatible with "no-version"
I don't know if package maintainers need this feature or not (someone
could ask them on arch-* ML <- I'm not a subscriber there), but this is
just an extra feature, they needn't use it.

Bye, ngaba

More information about the pacman-dev mailing list