|
@@ -581,8 +581,6 @@ bool SourcesWriter::DoPackage(string FileName)
|
|
|
auto_ptr<Override::Item> Itm(BOver.GetItem(BinList[I]));
|
|
auto_ptr<Override::Item> Itm(BOver.GetItem(BinList[I]));
|
|
|
if (Itm.get() == 0)
|
|
if (Itm.get() == 0)
|
|
|
continue;
|
|
continue;
|
|
|
- if (OverItem.get() == 0)
|
|
|
|
|
- OverItem = Itm;
|
|
|
|
|
|
|
|
|
|
unsigned char NewPrioV = debListParser::GetPrio(Itm->Priority);
|
|
unsigned char NewPrioV = debListParser::GetPrio(Itm->Priority);
|
|
|
if (NewPrioV < BestPrioV || BestPrio.empty() == true)
|
|
if (NewPrioV < BestPrioV || BestPrio.empty() == true)
|
|
@@ -590,6 +588,9 @@ bool SourcesWriter::DoPackage(string FileName)
|
|
|
BestPrioV = NewPrioV;
|
|
BestPrioV = NewPrioV;
|
|
|
BestPrio = Itm->Priority;
|
|
BestPrio = Itm->Priority;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (OverItem.get() == 0)
|
|
|
|
|
+ OverItem = Itm;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|