Commit 5f06e41d authored by Bernhard Link's avatar Bernhard Link

fix error with arch 'all' packages when Architecture: line contains 'source'

parent 9ec2b92f
......@@ -435,7 +435,10 @@ retvalue deb_add(const char *dbdir,DB *references,filesdb filesdb,const char *fo
}
RET_UPDATE(result,r);
} else for( i = 0 ; i < distribution->architectures.count ; i++ ) {
struct target *t = distribution_getpart(distribution,pkg->component,distribution->architectures.values[i],suffix);
struct target *t;
if( strcmp(distribution->architectures.values[i],"source") == 0 )
continue;
t = distribution_getpart(distribution,pkg->component,distribution->architectures.values[i],suffix);
r = target_initpackagesdb(t,dbdir);
if( !RET_WAS_ERROR(r) ) {
retvalue r2;
......
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