Commit 2ed8a534 authored by Bernhard Link's avatar Bernhard Link

fix problems of interatedupdate with --skipold

parent 8318beeb
2005-12-19 Bernhard R. Link <brlink@debian.org>
* fix segfault introduced into interatedupdate
by --skipold.
2005-12-18 Bernhard R. Link <brlink@debian.org>
* split Release reading from release.c to readrelease.c
......
......@@ -1782,6 +1782,10 @@ static retvalue singledistributionupdate(const char *dbdir,const char *methoddir
continue;
}
r = searchformissing(dbdir,target,force);
if( r == RET_NOTHING ) {
(void)downloadcache_free(cache);
continue;
}
RET_UPDATE(result,r);
if( RET_WAS_ERROR(r) && force <= 0 ) {
(void)downloadcache_free(cache);
......
......@@ -459,6 +459,7 @@ retvalue upgradelist_enqueue(struct upgradelist *upgrade,struct downloadcache *c
struct package_data *pkg;
retvalue result,r;
result = RET_NOTHING;
assert(upgrade != NULL);
for( pkg = upgrade->list ; pkg != NULL ; pkg = pkg->next ) {
if( pkg->version == pkg->new_version && !pkg->deleted) {
assert(pkg->aptmethod != NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment