summaryrefslogtreecommitdiff
path: root/lib/libalpm/delta.h
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-02-25 18:24:38 +0100
committerDan McGee <dan@archlinux.org>2009-02-28 15:33:46 -0600
commit8c09c19139b47dab3bf2282f87fe289e1282f361 (patch)
treee9ab843a1903135a0ae04c61032b79525e3aacbd /lib/libalpm/delta.h
parentf09f82ee595319917c794dff69486bca851a5601 (diff)
downloadpacman-8c09c19139b47dab3bf2282f87fe289e1282f361.tar.xz
libalpm: remove from_md5 and to_md5 from pmdelta_t
The from_md5 and to_md5 fields were a nice extra safety, which would avoid trying to apply deltas on corrupted package files. However, they are not strictly necessary, since xdelta should be able to detect that on its own. The main problem is that it is impossible to compute these informations from the delta only. So repo-add would not be able to compute the delta entry based on just the delta file. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/delta.h')
-rw-r--r--lib/libalpm/delta.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/libalpm/delta.h b/lib/libalpm/delta.h
index 5bb86b94..29a2b0c9 100644
--- a/lib/libalpm/delta.h
+++ b/lib/libalpm/delta.h
@@ -24,20 +24,16 @@
#include "alpm.h"
struct __pmdelta_t {
- /** filename of the 'before' file */
- char *from;
- /** md5sum of the 'before' file */
- char *from_md5;
- /** filename of the 'after' file */
- char *to;
- /** md5sum of the 'after' file */
- char *to_md5;
/** filename of the delta patch */
char *delta;
/** md5sum of the delta file */
char *delta_md5;
/** filesize of the delta file */
off_t delta_size;
+ /** filename of the 'before' file */
+ char *from;
+ /** filename of the 'after' file */
+ char *to;
/** download filesize of the delta file */
off_t download_size;
};
@@ -45,7 +41,7 @@ struct __pmdelta_t {
pmdelta_t *_alpm_delta_parse(char *line);
void _alpm_delta_free(pmdelta_t *delta);
off_t _alpm_shortest_delta_path(alpm_list_t *deltas,
- const char *to, const char *to_md5, alpm_list_t **path);
+ const char *to, alpm_list_t **path);
#endif /* _ALPM_DELTA_H */