index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Fyfe <andrew@neptune-one.net> | 2007-07-25 22:35:29 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-08-16 11:30:38 -0400 |
commit | ba67fdae63122b40d8fb4abf9c1c7695999f143d (patch) | |
tree | a9dd1ef2aa84e9e60d17efb31f6c6b91af09e746 /lib/libalpm/be_files.c | |
parent | ee977019e39fe33a508a60abe4a3ad7eff819b74 (diff) |
-rw-r--r-- | lib/libalpm/be_files.c | 11 |
diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index de0381eb..82430cef 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -361,12 +361,6 @@ int _alpm_db_read(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) } _alpm_strtrim(tmp); info->isize = atol(tmp); - } else if(!strcmp(line, "%SHA1SUM%")) { - /* SHA1SUM tag only appears in sync repositories, - * not the local one. */ - if(fgets(info->sha1sum, sizeof(info->sha1sum), fp) == NULL) { - goto error; - } } else if(!strcmp(line, "%MD5SUM%")) { /* MD5SUM tag only appears in sync repositories, * not the local one. */ @@ -571,10 +565,7 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) fprintf(fp, "%%ISIZE%%\n" "%lu\n\n", info->isize); } - if(info->sha1sum) { - fprintf(fp, "%%SHA1SUM%%\n" - "%s\n\n", info->sha1sum); - } else if(info->md5sum) { + if(info->md5sum) { fprintf(fp, "%%MD5SUM%%\n" "%s\n\n", info->md5sum); } |