mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 04:15:06 -05:00
Don't create two pmpkg_t objects in be_package
Ensure we only have one- this looks like the result of a bad merge from old 2008 signing code with the current stuff which has changed quite a bit. Originally-seen-by: Rémy Oudompheng <remyoudompheng@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c5addd94e3
commit
8df7208d7b
@ -289,15 +289,6 @@ static pmpkg_t *pkg_load(const char *pkgfile, int full)
|
||||
RET_ERR(PM_ERR_PKG_OPEN, NULL);
|
||||
}
|
||||
|
||||
newpkg = _alpm_pkg_new();
|
||||
if(newpkg == NULL) {
|
||||
archive_read_finish(archive);
|
||||
RET_ERR(PM_ERR_MEMORY, NULL);
|
||||
}
|
||||
|
||||
newpkg->filename = strdup(pkgfile);
|
||||
newpkg->size = st.st_size;
|
||||
|
||||
_alpm_log(PM_LOG_DEBUG, "starting package load for %s\n", pkgfile);
|
||||
|
||||
/* If full is false, only read through the archive until we find our needed
|
||||
|
Loading…
Reference in New Issue
Block a user