From 4fddeff8fbc1ba52b332481b47ef6002b47d376e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 4 Jan 2025 13:33:23 +0000 Subject: [PATCH] stripper: There should be no need to check if the destination exists now We should have performed deduplication. Signed-off-by: Michael Tremer --- src/pakfire/stripper.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/pakfire/stripper.c b/src/pakfire/stripper.c index fa39e0040..941da714f 100644 --- a/src/pakfire/stripper.c +++ b/src/pakfire/stripper.c @@ -289,16 +289,9 @@ static int pakfire_stripper_copy_sources( // Open the destination file dst = fopen(p, "wx"); if (!dst) { - switch (errno) { - // If the file exist already, we are done - case EEXIST: - goto ERROR; - - default: - ERROR(stripper->ctx, "Could not open %s: %m\n", p); - r = -errno; - goto ERROR; - } + ERROR(stripper->ctx, "Could not open %s: %m\n", p); + r = -errno; + goto ERROR; } // Copy all content -- 2.47.3