diff options
author | Timo Teräs <timo.teras@iki.fi> | 2011-01-27 16:21:47 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2011-01-27 16:22:07 +0200 |
commit | 13842ccfaa717e729a345ace864c8121fa7697a7 (patch) | |
tree | 0fea9abff01e28bc4dcaa2936f2b3b5210d2f15b /main/apk-tools/0001-db-fix-package-caching.patch | |
parent | 8ccfff342c43a790a4faebe4b0e39230023757a6 (diff) | |
download | aports-13842ccfaa717e729a345ace864c8121fa7697a7.tar.bz2 aports-13842ccfaa717e729a345ace864c8121fa7697a7.tar.xz |
main/apk-tools: fix package caching
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 + |