Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=ecef85e39a5041bd8c6c8b6fa02800cb0c2ed420

commit ecef85e39a5041bd8c6c8b6fa02800cb0c2ed420
Author: bouleetbil <[email protected]>
Date:   Fri Dec 30 15:53:45 2011 +0100

libpacman
*added structure PM_GRP

diff --git a/py-pacman/libpacman/pacmang2/libpacman.py 
b/py-pacman/libpacman/pacmang2/libpacman.py
index e9cd25b..2d33b35 100644
--- a/py-pacman/libpacman/pacmang2/libpacman.py
+++ b/py-pacman/libpacman/pacmang2/libpacman.py
@@ -297,6 +297,14 @@ PM_DB._fields_ = [
("servers", ctypes.c_char),
("lastupdate", ctypes.c_char * 16)]

+
+class PM_GRP(Structure):
+  pass
+PM_GRP._fields_ = [
+        ("name",ctypes.c_char * 255),
+       ("packages", POINTER(PM_LIST))]
+
+
def _db_cb (section,db):
repo_list.append(section)
print_debug("repo : "+section)
@@ -457,7 +465,6 @@ def pacman_sync_cleancache():
(PM_GRP_NAME,
PM_GRP_PKGNAMES)=map(ctypes.c_int, xrange(1,3))

-#FIXME define PM_GRP
def pacman_db_readgrp(db, name):
print_debug("pacman_db_readgrp")
return pacman.pacman_db_readgrp(db,name)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to