summaryrefslogtreecommitdiff
path: root/src/unpack.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-05-04 05:04:01 +0200
committerGuillem Jover <guillem@debian.org>2018-08-30 03:14:08 +0200
commit7ab849d1a814b2d2b2e29f9965fb5d51b654265a (patch)
treeb3482773eb4594ce8cc795e0ed6d60da9e4a0575 /src/unpack.c
parent3491a330369d51fe1a1fb5b738082d5e0f83badc (diff)
downloaddpkg-7ab849d1a814b2d2b2e29f9965fb5d51b654265a.tar.gz
libdpkg: Rename struct pkginfo files member to archives
Rename matching types and macros, so that the purpose of the symbols is clear, and to open the way for moving the fsys files list from the dpkg clientdata.
Diffstat (limited to 'src/unpack.c')
-rw-r--r--src/unpack.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/unpack.c b/src/unpack.c
index ae0e12132..0ab4175e2 100644
--- a/src/unpack.c
+++ b/src/unpack.c
@@ -1130,22 +1130,24 @@ void process_archive(const char *filename) {
parsedb_flags = pdb_parse_available;
else
parsedb_flags = pdb_parse_binary;
- parsedb_flags |= pdb_ignorefiles;
+ parsedb_flags |= pdb_ignore_archives;
if (fc_badversion)
parsedb_flags |= pdb_lax_version_parser;
parsedb(cidir, parsedb_flags, &pkg);
- if (!pkg->files) {
- pkg->files= nfmalloc(sizeof(struct filedetails));
- pkg->files->next = NULL;
- pkg->files->name = pkg->files->msdosname = pkg->files->md5sum = NULL;
+ if (!pkg->archives) {
+ pkg->archives = nfmalloc(sizeof(struct archivedetails));
+ pkg->archives->next = NULL;
+ pkg->archives->name = NULL;
+ pkg->archives->msdosname = NULL;
+ pkg->archives->md5sum = NULL;
}
/* Always nfmalloc. Otherwise, we may overwrite some other field (like
* md5sum). */
psize = nfmalloc(30);
sprintf(psize, "%jd", (intmax_t)stab.st_size);
- pkg->files->size = psize;
+ pkg->archives->size = psize;
if (cipaction->arg_int == act_avail) {
printf(_("Recorded info about %s from %s.\n"),