# Also a problem, is when the --force-reinstall'd package contains fewer files. # These files are not properly orphaned/deleted. # # Perhaps --force-reinstall should do a --force-depends remove, then install? # # # Status # ====== # # Graham Gower: # > Fixed with r538. import os import opk, cfg, opkgcl opk.regress_init() open("foo", "w").close() a1 = opk.Opk(Package="a") a1.write(data_files=["foo"]) os.rename("a_1.0_all.opk", "a_with_foo.opk") opkgcl.install("a_with_foo.opk") # ---- opkgcl.install("a_with_foo.opk") open("bar", "w").close() o = opk.OpkGroup() a2 = opk.Opk(Package="a") a2.write(data_files=["foo", "bar"])
# # Actual: # # root@terminal:# opkg upgrade -force-defaults -autoremove # Upgrading A on root from 1.0-r0.1 to 2.0-r0.1... # Downloading ... # Installing C (1.0-r0) to root... # Collected errors: * ERROR: The following packages conflict with C: * # # Status: Accepted # import os import opk, cfg, opkgcl opk.regress_init() o = opk.OpkGroup() o.add(Package="a", Version="1.0", Depends="b") o.add(Package="b") o.write_opk() o.write_list() opkgcl.update() opkgcl.install("a") o = opk.OpkGroup() o.add(Package="a", Version="2.0", Depends="c") o.add(Package="c", Conflicts="b") o.write_opk() o.write_list()