diff options
author | Judd Vinet <judd@archlinux.org> | 2004-04-30 05:37:13 +0200 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-04-30 05:37:13 +0200 |
commit | a2ee533f84aa858df5710d799c52b7d06a77b1de (patch) | |
tree | f07ca99457d38b776cb91d78754e80d0d227db90 /src/db.c | |
parent | 4ad864462043c61d19861e4b7cacf6610ae9ce7f (diff) | |
download | pacman-a2ee533f84aa858df5710d799c52b7d06a77b1de.tar.gz pacman-a2ee533f84aa858df5710d799c52b7d06a77b1de.tar.xz |
Imported from pacman-2.7.9.tar.gz
Diffstat (limited to 'src/db.c')
-rw-r--r-- | src/db.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -250,20 +250,22 @@ pkginfo_t* db_read(pacdb_t *db, struct dirent *ent, unsigned int inforeq) info->size = atol(tmp); } else if(!strcmp(line, "%REPLACES%")) { /* the REPLACES tag is special -- it only appears in sync repositories, - * not the local one. - */ + * not the local one. */ while(fgets(line, 512, fp) && strlen(trim(line))) { char *s = strdup(line); info->replaces = list_add(info->replaces, s); } } else if(!strcmp(line, "%MD5SUM%")) { /* MD5SUM tag only appears in sync repositories, - * not the local one. - */ + * not the local one. */ if(fgets(info->md5sum, sizeof(info->md5sum), fp) == NULL) { FREEPKG(info); return(NULL); } + } else if(!strcmp(line, "%FORCE%")) { + /* FORCE tag only appears in sync repositories, + * not the local one. */ + info->force = 1; } } fclose(fp); |