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

Roman Kyrylych roman.kyrylych at gmail.com
Sat Nov 10 07:12:36 EST 2007


2007/11/10, Nagy Gabor <ngaba at bibl.u-szeged.hu>:
> Hi!
>
> Give a look at the following pactest:
> ----add043.py----
> self.description = "provision>=1.0-2 needed"
>
> p1 = pmpkg("pkg1", "1.0-2")
> p1.depends = ["provision>=1.0-2"]
> self.addpkg(p1)
>
> p2 = pmpkg("pkg2", "1.0-2")
> p2.provides = ["provision"]
> self.addpkg2db("local", p2)
>
> self.args = "-A %s" % p1.filename()
>
> self.addrule("PACMAN_RETCODE=1")
> self.addrule("!PKG_EXIST=pkg1")
> self.addrule("PKG_EXIST=pkg2")
> -----------------
> 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"
> provisions.
> 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.
>

http://bugs.archlinux.org/task/6508
http://bugs.archlinux.org/task/7524

-- 
Roman Kyrylych (Роман Кирилич)


More information about the pacman-dev mailing list