]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
bindings: implement pool_setdisttype 131/head
authorDmitry Burmistrov <dburmistrov@mirantis.com>
Sat, 16 Apr 2016 19:07:53 +0000 (22:07 +0300)
committerDmitry Burmistrov <dburmistrov@mirantis.com>
Sat, 16 Apr 2016 19:11:19 +0000 (22:11 +0300)
bindings/solv.i

index 4c098b39e5682f27018cbefcbb4951c602ac2aeb..5312900437c6440fca1b6599d4d32aa1839b48d0 100644 (file)
@@ -1468,11 +1468,18 @@ typedef struct {
   static const int POOL_FLAG_NOINSTALLEDOBSOLETES = POOL_FLAG_NOINSTALLEDOBSOLETES;
   static const int POOL_FLAG_HAVEDISTEPOCH = POOL_FLAG_HAVEDISTEPOCH;
   static const int POOL_FLAG_NOOBSOLETESMULTIVERSION = POOL_FLAG_NOOBSOLETESMULTIVERSION;
+  static const int DISTTYPE_RPM = DISTTYPE_RPM;
+  static const int DISTTYPE_DEB = DISTTYPE_DEB;
+  static const int DISTTYPE_ARCH = DISTTYPE_ARCH;
+  static const int DISTTYPE_HAIKU = DISTTYPE_HAIKU;
 
   Pool() {
     Pool *pool = pool_create();
     return pool;
   }
+  int setdisttype(int disttype) {
+    return pool_setdisttype($self, disttype);
+  }
   void set_debuglevel(int level) {
     pool_setdebuglevel($self, level);
   }