diff options
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -359,9 +359,8 @@ get_fullname_parts(URPM__Package pkg, char **name, int *epoch, char **version, c } static size_t -get_filesize(Header h) { - /* XXX: 24 is padding..? */ - return rpmpkgSizeof("Lead", NULL) + 24 + headerSizeof(h) + get_int(h, RPMTAG_ARCHIVESIZE); +get_filesize(const Header h) { + return get_int(h, RPMTAG_SIGSIZE) + 440; /* 440 is the rpm header size (?) empirical, but works */ } static int |