]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
pakfire: Don't uninstall source packages by accident
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2025 15:11:57 +0000 (15:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2025 15:11:57 +0000 (15:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/pakfire.c

index 19dcfc7cfb2e19c6a81819af4b0542e1cf692dde..518fd6512a5c8bee371088405897222acc7001bb 100644 (file)
@@ -292,6 +292,9 @@ static int pakfire_populate_pool(struct pakfire* pakfire) {
        Pool* pool = pakfire->pool = pool_create();
        pool_setdisttype(pool, DISTTYPE_RPM);
 
+       // Don't replace source packages with binary packages
+       pool_set_flag(pool, POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS, 1);
+
 #ifdef ENABLE_DEBUG
        // Enable debug output
        pool_setdebuglevel(pool, 2);