diff options
Diffstat (limited to 'main/apk-tools/0001-db-fix-package-caching.patch')
-rw-r--r-- | main/apk-tools/0001-db-fix-package-caching.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/apk-tools/0001-db-fix-package-caching.patch b/main/apk-tools/0001-db-fix-package-caching.patch new file mode 100644 index 0000000000..e4173c7db8 --- /dev/null +++ b/main/apk-tools/0001-db-fix-package-caching.patch @@ -0,0 +1,28 @@ +From 1c6ab67984b20b49ed12a0576e59cd446a44ae84 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> +Date: Fri, 21 Jan 2011 09:37:19 +0200 +Subject: [PATCH] db: fix package caching + +--- + src/database.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/database.c b/src/database.c +index c985233..53a18c7 100644 +--- a/src/database.c ++++ b/src/database.c +@@ -2061,9 +2061,9 @@ static int apk_db_unpack_pkg(struct apk_database *db, + + if (need_copy) { + if (r == 0) +- renameat(db->cachetmp_fd, file, db->cache_fd, file); ++ renameat(db->cachetmp_fd, item, db->cache_fd, item); + else +- unlinkat(db->cachetmp_fd, file, 0); ++ unlinkat(db->cachetmp_fd, item, 0); + } + + if (r != 0) { +-- +1.7.1 + |