]> git.ipfire.org Git - pakfire.git/commitdiff
compress: Only say that we are extracting when we are extracting
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Aug 2022 16:47:21 +0000 (16:47 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 23 Aug 2022 16:47:21 +0000 (16:47 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/compress.c

index 16c9ef3f3310a295af654008bbe8379feda2e8b2..de311a6c94425e82635ff55f47a40dba3be761b7 100644 (file)
@@ -596,8 +596,6 @@ static int __pakfire_extract_entry(struct pakfire* pakfire, struct pakfire_extra
        // Fetch path
        const char* path = archive_entry_pathname(entry);
 
-       DEBUG(pakfire, "Extracting %s\n", path);
-
        // Prepend the prefix
        if (*data->prefix) {
                // Compose file path
@@ -638,6 +636,8 @@ static int __pakfire_extract_entry(struct pakfire* pakfire, struct pakfire_extra
 
        // Create file & extract payload
        if (data->writer) {
+               DEBUG(pakfire, "Extracting %s\n", path);
+
                r = archive_read_extract2(data->archive, entry, data->writer);
                switch (r) {
                        case ARCHIVE_OK: