libapt-pkg - _config->FindFile("Dir::Etc::sourcelist") returns empty std::string
Michael Stemle
themanchicken at gmail.com
Mon Dec 2 12:45:05 UTC 2013
I noticed :-)
On Dec 2, 2013 6:46 AM, "Harald Sitter" <apachelogger at ubuntu.com> wrote:
> On Thu, Nov 28, 2013 at 4:33 AM, Michael Stemle <themanchicken at gmail.com>
> wrote:
> > Hey all, does anybody know under what circumstances
> > `_config->FindFile("Dir::Etc::sourcelist")` would return an empty
> > std::string?
> >
> > I have this line:
> >
> > qDebug() << "sources.list: " <<
> > QString::fromStdString(_config->FindFile("Dir::Etc::sourcelist"));
> >
> > which outputs (from SourcesListTest::testConstructor):
> >
> > QDEBUG : SourcesListTest::testConstructor() sources.list: ""
>
> _config is a libapt-pkg object I suppose? if so I suggest reading
> their source code, IIRC the library is rather under documented and
> doesn't have the most obvious behavior at times.
>
> HS
>
> --
> kubuntu-devel mailing list
> kubuntu-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kubuntu-devel/attachments/20131202/02998688/attachment.html>
More information about the kubuntu-devel
mailing list