From: Michael Tremer Date: Sat, 4 Jan 2025 13:33:23 +0000 (+0000) Subject: stripper: There should be no need to check if the destination exists now X-Git-Tag: 0.9.30~544 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4fddeff8fbc1ba52b332481b47ef6002b47d376e;p=pakfire.git stripper: There should be no need to check if the destination exists now We should have performed deduplication. Signed-off-by: Michael Tremer --- 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