Export rpmalAllSatisfiesDepend() internally (again)
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 2 Oct 2012 07:50:10 +0000 (10:50 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 2 Oct 2012 07:50:10 +0000 (10:50 +0300)
- For some uses, we need to be more selective about providers...

lib/rpmal.c
lib/rpmal.h

index 948892f..fe0b367 100644 (file)
@@ -343,7 +343,7 @@ static rpmte * rpmalAllFileSatisfiesDepend(const rpmal al, const char *fileName)
     return ret;
 }
 
-static rpmte * rpmalAllSatisfiesDepend(const rpmal al, const rpmds ds)
+rpmte * rpmalAllSatisfiesDepend(const rpmal al, const rpmds ds)
 {
     rpmte * ret = NULL;
     int i, found;
index 8afecd0..51da320 100644 (file)
@@ -53,6 +53,15 @@ RPM_GNUC_INTERNAL
 void rpmalAdd(rpmal al, rpmte p);
 
 /**
+ * Lookup all providers for a dependency in the available list
+ * @param al           available list
+ * @param ds           dependency set
+ * @return             best provider for the dependency, NULL if none
+ */
+RPM_GNUC_INTERNAL
+rpmte * rpmalAllSatisfiesDepend(const rpmal al, const rpmds ds);
+
+/**
  * Lookup best provider for a dependency in the available list
  * @param al           available list
  * @param ds           dependency set