dskvr / opkg

Automatically exported from code.google.com/p/opkg
0 stars 0 forks source link

Opkg fails to attempt all satisfying dependencies after installing the first one fails #85

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

#!/usr/bin/python3

import opk, cfg, opkgcl

def cleanup():
    opkgcl.remove("a")
    opkgcl.remove("b")
    opkgcl.remove('c')

opk.regress_init()

o = opk.OpkGroup()
o.add(Package="a", Provides="v")
o.add(Package="b", Provides="v", Depends="b_nonexistant")
o.add(Package="c", Depends="v")

o.write_opk()
o.write_list()

opkgcl.update()

# install ``c'' from repository
opkgcl.install("c")
if not opkgcl.is_installed("c"):
    print(__file__, ": package ``c'' not installed.")
    cleanup()
    exit(False)

cleanup()

What is the expected output? What do you see instead?

Opkg should try subsequent satisfying dependencies in the event of failing to 
install the first one (e.g. due to missing dependency or conflict).

Original issue reported on code.google.com by graham.g...@gmail.com on 25 Oct 2011 at 6:31

GoogleCodeExporter commented 8 years ago
I'll add this to my todo list as Graham isn't working on opkg anymore.

Original comment by paul.betafive on 18 Sep 2013 at 1:32

GoogleCodeExporter commented 8 years ago
This case should occur relatively rarely in well managed package feeds so I see 
it as less of a priority to fix than other bugs. Tagged for v0.4 for now.

Original comment by paul.betafive on 1 Mar 2014 at 3:22