]> git.ipfire.org Git - pakfire.git/commitdiff
dist: Pass any source files with their absolute path
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Aug 2022 15:23:43 +0000 (15:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Aug 2022 15:23:43 +0000 (15:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/dist.c

index 5d8f3ccb0dbcab2e954c6edbd1f8373663bd519f..54011c79f1fd112ef24c3cb9dbc1959f88ba0b6c 100644 (file)
@@ -276,7 +276,7 @@ static int pakfire_dist_add_source(struct pakfire* pakfire, struct pakfire_packa
                        return r;
        }
 
-       pakfire_string_format(archive_path, "files/%s", filename);
+       pakfire_string_format(archive_path, "/files/%s", filename);
 
        // Add file to package
        return pakfire_packager_add(packager, cache_path, archive_path);