[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638024: [apt] APT::Default-Release considers equivalent suite names differently ("testing" != "wheezy")



On Tue, Aug 16, 2011 at 18:28, Filipus Klutiero <chealer@gmail.com> wrote:
> The value of APT::Default-Release depends on what suite codenames are in APT
> sources. If a source specifies the distribution as "testing", then setting
> APT::Default-Release to "wheezy" will not work as expected. Instead, APT
> will complain that "wheezy" wasn't found in sources.list.
>>
>> E:The value 'wheezy' is invalid for APT::Default-Release as such a release
>> is not available in the sources

It should not, can you provide an example sources.list?

the code in apt-pkg/policy.cc Init() reads:
if ((F->Archive != 0 && vm.ExpressionMatches(DefRel, F.Archive()) == true) ||
    (F->Codename != 0 && vm.ExpressionMatches(DefRel, F.Codename()) == true) ||
    (F->Version != 0 && vm.ExpressionMatches(DefRel, F.Version()) == true))

Archive, Codename and Version refer to the data extracted from the fields
in the {In,}Release files (there Archive is called Suite nowadays).


Best regards

David Kalnischkies



Reply to: