PLDWWW: Packages/Poldek

glen glen at pld-linux.org
Wed Jun 7 08:29:16 CEST 2006


Author: glen   Date: Wed Jun  7 06:29:16 2006 GMT
Module: PLDWWW   URL: http://www.pld-linux.org/Packages/Poldek
---- Log message:
make sections copy-pasteable

---- Page affected: Packages/Poldek

---- Diffs:

================================================================
  Here's some information i managed to gather by looking at swig source and py code.
  A lot of help gave {{{cli/test_cli.c}}}, had no clue where to start from.
  
+ == poldek_ctx ==
+ 
  {{{
- $ python
- Python 2.4.3 (#1, May 15 2006, 19:23:25)
- [GCC 3.3.6 (PLD Linux)] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import poldek
+ import poldek
- >>> poldek.lib_init()
+ poldek.lib_init()
- >>> ctx = poldek.poldek_ctx()
+ ctx = poldek.poldek_ctx()
- >>> ctx.load_config("/etc/poldek/poldek.conf")
+ ctx.load_config("/etc/poldek/poldek.conf")
- >>> ctx.setup()
+ ctx.setup()
- 1
- >>> allpkg = ctx.get_avail_packages()
  }}}
  
- 
- == poldek_ctx ==
  
   * ctx.load_config(CONFIGFILE)
  CONFIGFILE string path to config file
@@ -33, +27 @@

  >>> ctx.configure(poldekmod.POLDEK_CONF_CACHEDIR, "/tmp/cache")
  1
  }}}
+  * ctx.get_avail_packages()
+ sample
+ {{{
+ print ctx.get_avail_packages()
+ }}}
  
  == poldek_ts ==
  poldek_ts(ctx, FLAGS)
@@ -43, +42 @@

   * POLDEK_TS_VERIFY
  
  {{{
- >>> ts = poldek.poldek_ts(ctx, 0)
+ ts = poldek.poldek_ts(ctx, 0)
- >>> ts = poldek.poldek_ts(ctx, poldekmod.POLDEK_TS_INSTALL)
+ ts = poldek.poldek_ts(ctx, poldekmod.POLDEK_TS_INSTALL)
+ ts = poldek.poldek_ts(ctx, poldekmod.POLDEK_OP_GREEDY)
  }}}
  
  == poclidek_ctx ==
  
  {{{
- >>> cctx = poldek.poclidek_ctx(ctx)
+ cctx = poldek.poclidek_ctx(ctx)
- >>> cmd = cctx.rcmd_new(ts)
+ cmd = cctx.rcmd_new(ts)
- 
  }}}
  
  


More information about the pld-cvs-commit mailing list