mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 04:57:59 -05:00
code cleanup
This commit is contained in:
parent
25571830d6
commit
a08a9896c9
@ -109,7 +109,6 @@ static pmsyncpkg_t *find_pkginsync(char *needle, PMList *haystack)
|
|||||||
PMList *_alpm_sync_load_dbarchive(char *archive)
|
PMList *_alpm_sync_load_dbarchive(char *archive)
|
||||||
{
|
{
|
||||||
PMList *lp = NULL;
|
PMList *lp = NULL;
|
||||||
DIR *dir = NULL;
|
|
||||||
TAR *tar = NULL;
|
TAR *tar = NULL;
|
||||||
tartype_t gztype = {
|
tartype_t gztype = {
|
||||||
(openfunc_t)_alpm_gzopen_frontend,
|
(openfunc_t)_alpm_gzopen_frontend,
|
||||||
@ -123,10 +122,6 @@ PMList *_alpm_sync_load_dbarchive(char *archive)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ORE - readdir tmp_dir */
|
|
||||||
/* for each subdir, parse %s/desc and %s/depends */
|
|
||||||
/* then db_write it */
|
|
||||||
|
|
||||||
tar_close(tar);
|
tar_close(tar);
|
||||||
|
|
||||||
return(lp);
|
return(lp);
|
||||||
@ -135,9 +130,6 @@ error:
|
|||||||
if(tar) {
|
if(tar) {
|
||||||
tar_close(tar);
|
tar_close(tar);
|
||||||
}
|
}
|
||||||
if(dir) {
|
|
||||||
closedir(dir);
|
|
||||||
}
|
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user