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
DnfSackPrivate *priv = GET_PRIVATE(sack);
priv->pool = pool_create();
pool_set_flag(priv->pool, POOL_FLAG_WHATPROVIDESWITHDISABLED, 1);
+ pool_setdisttype(priv->pool, DISTTYPE_RPM);
priv->running_kernel_id = -1;
priv->running_kernel_fn = running_kernel;
priv->considered_uptodate = TRUE;
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;