summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-01 19:30:57 +0200
committerDan McGee <dan@archlinux.org>2011-04-01 19:31:48 +0200
commit20c4928ee155db7b43b9f5b440a2cb199f178bb4 (patch)
treed8b61536b14c410aee3b20a785f1ed9d4a6bd852 /lib
parenta164c8405a0fb08cc7783d51796fbb76d0e4f493 (diff)
downloadpacman-20c4928ee155db7b43b9f5b440a2cb199f178bb4.tar.gz
pacman-20c4928ee155db7b43b9f5b440a2cb199f178bb4.tar.xz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/be_sync.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index 98516fd8..5a13adda 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -418,6 +418,12 @@ static int sync_db_read(pmdb_t *db, struct archive *archive,
pkg->isize = atol(line);
} else if(strcmp(line, "%MD5SUM%") == 0) {
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) {
READ_AND_STORE_ALL(pkg->replaces);
} else if(strcmp(line, "%DEPENDS%") == 0) {