summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2008-11-07 09:51:53 +0200
committerTimo Teras <timo.teras@iki.fi>2008-11-07 09:51:53 +0200
commit014d39488bbca3cdd2e6c66049c181c9ae246cbd (patch)
treeeaccc0fed1bc63da68af269da2a258dca66dd42b /src/database.c
parent57154db85d459a869bbfb7a3bd2bcb16699a0a7a (diff)
downloadapk-tools-014d39488bbca3cdd2e6c66049c181c9ae246cbd.tar.gz
apk-tools-014d39488bbca3cdd2e6c66049c181c9ae246cbd.tar.bz2
apk-tools-014d39488bbca3cdd2e6c66049c181c9ae246cbd.tar.xz
apk-tools-014d39488bbca3cdd2e6c66049c181c9ae246cbd.zip
db: do not install .PKGINFO files
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/database.c b/src/database.c
index b43b360..168df04 100644
--- a/src/database.c
+++ b/src/database.c
@@ -675,6 +675,9 @@ static int apk_db_install_archive_entry(struct apk_archive_entry *ae,
const char *p;
int r = 0, type;
+ if (strcmp(ae->name, ".PKGINFO") == 0)
+ return 0;
+
if (strncmp(ae->name, "var/db/apk/", 11) == 0) {
p = &ae->name[11];
if (strncmp(p, pkg->name->name, strlen(pkg->name->name)) != 0)