On "foreign" systems, including Debian, libsolv tries to be smart and default
to the native packaging system type. We need to explicitly override it to use
RPM for dnf to work.
Gbp-Pq: Name 0003-Set-the-default-disttype-to-RPM.patch
priv->pool = pool_create();
pool_set_flag(priv->pool, POOL_FLAG_WHATPROVIDESWITHDISABLED, 1);
+ pool_setdisttype(priv->pool, DISTTYPE_RPM);
+
// Configures the pool_addfileprovides_queue() method to only add files from primary.xml.
// This ensures the method works correctly even if filelist.xml metadata are not loaded.
// At the same time when filelist.xml are loaded libsolv is able to search them for required
START_TEST(test_version_split)
{
Pool *pool = pool_create();
+
+ /*
+ * On "foreign" systems, the disttype will
+ * not default to RPM. Set this explicitly.
+ */
+ fail_if(-1 == pool_setdisttype(pool, DISTTYPE_RPM));
+
char evr[] = "1:5.9.3-8";
char *epoch, *version, *release;