1 #!/usr/bin/python3 2 3 import os 4 import opk, cfg, opkgcl 5 6 opk.regress_init() 7 8 o = opk.OpkGroup() 9 o.add(Package="a", Version="1.0", Architecture="all", Depends="b") 10 o.add(Package="b", Version="1.0", Architecture="all") 11 o.write_opk() 12 o.write_list() 13 14 opkgcl.update() 15 16 (status, output) = opkgcl.opkgcl("install a") 17 ln_a = output.find("Configuring a") 18 ln_b = output.find("Configuring b") 19 20 if ln_a == -1: 21 print(__file__, ": Didn't see package 'a' get configured.") 22 exit(False) 23 24 if ln_b == -1: 25 print(__file__, ": Didn't see package 'b' get configured.") 26 exit(False) 27 28 if ln_a < ln_b: 29 print(__file__, ": Packages 'a' and 'b' configured in wrong order.") 30 exit(False) 31 32 opkgcl.remove("a") 33 opkgcl.remove("b")
This page was automatically generated by LXR 0.3.1. • OpenWrt