mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 21:38:19 -05:00
Ignore upcoming new values in sync backend
PGPSIG and SHA256SUM are new and we can safely ignore them for now if we come across them. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
a164c8405a
commit
20c4928ee1
@ -418,6 +418,12 @@ static int sync_db_read(pmdb_t *db, struct archive *archive,
|
|||||||
pkg->isize = atol(line);
|
pkg->isize = atol(line);
|
||||||
} else if(strcmp(line, "%MD5SUM%") == 0) {
|
} else if(strcmp(line, "%MD5SUM%") == 0) {
|
||||||
READ_AND_STORE(pkg->md5sum);
|
READ_AND_STORE(pkg->md5sum);
|
||||||
|
} else if(strcmp(line, "%SHA256SUM%") == 0) {
|
||||||
|
/* we don't do anything with this value right now */
|
||||||
|
READ_NEXT(line);
|
||||||
|
} else if(strcmp(line, "%PGPSIG%") == 0) {
|
||||||
|
/* we don't do anything with this value right now */
|
||||||
|
READ_NEXT(line);
|
||||||
} else if(strcmp(line, "%REPLACES%") == 0) {
|
} else if(strcmp(line, "%REPLACES%") == 0) {
|
||||||
READ_AND_STORE_ALL(pkg->replaces);
|
READ_AND_STORE_ALL(pkg->replaces);
|
||||||
} else if(strcmp(line, "%DEPENDS%") == 0) {
|
} else if(strcmp(line, "%DEPENDS%") == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user