• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/opkg-lede/tests/regress/issue55.py

  1 #!/usr/bin/python3
  2 
  3 import os
  4 import opk, cfg, opkgcl
  5 
  6 opk.regress_init()
  7 
  8 long_filename = 110*"a"
  9 
 10 os.symlink(long_filename, "linky")
 11 a = opk.Opk(Package="a", Version="1.0", Architecture="all")
 12 a.write(data_files=["linky"])
 13 os.unlink("linky")
 14 opkgcl.install("a_1.0_all.opk")
 15 
 16 if not opkgcl.is_installed("a"):
 17         print(__file__, ": Package 'a' not installed.")
 18         exit(False)
 19 
 20 if not os.path.lexists("{}/linky".format(cfg.offline_root)):
 21         print(__file__, ": symlink to file with a name longer than 100 "
 22                                         "characters not created.")
 23         exit(False)
 24 
 25 opkgcl.remove("a")

This page was automatically generated by LXR 0.3.1.  •  OpenWrt