Fixed tilde expansion for beaglequeuedir
This commit is contained in:
parent
614c7351e3
commit
172fc68f3f
@ -179,10 +179,11 @@ BeagleQueueIndexer::BeagleQueueIndexer(RclConfig *cnf, Rcl::Db *db,
|
|||||||
: m_config(cnf), m_db(db), m_cache(0), m_updater(updfunc),
|
: m_config(cnf), m_db(db), m_cache(0), m_updater(updfunc),
|
||||||
m_nocacheindex(false)
|
m_nocacheindex(false)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!m_config->getConfParam("beaglequeuedir", m_queuedir))
|
if (!m_config->getConfParam("beaglequeuedir", m_queuedir))
|
||||||
m_queuedir = path_tildexpand("~/.beagle/ToIndex/");
|
m_queuedir = "~/.beagle/ToIndex/";
|
||||||
|
m_queuedir = path_tildexpand(m_queuedir);
|
||||||
path_catslash(m_queuedir);
|
path_catslash(m_queuedir);
|
||||||
|
|
||||||
m_cache = new BeagleQueueCache(cnf);
|
m_cache = new BeagleQueueCache(cnf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -309,7 +310,7 @@ bool BeagleQueueIndexer::index()
|
|||||||
// Finally index the queue
|
// Finally index the queue
|
||||||
FsTreeWalker walker(FsTreeWalker::FtwNoRecurse);
|
FsTreeWalker walker(FsTreeWalker::FtwNoRecurse);
|
||||||
walker.addSkippedName(".*");
|
walker.addSkippedName(".*");
|
||||||
FsTreeWalker::Status status =walker.walk(m_queuedir, *this);
|
FsTreeWalker::Status status = walker.walk(m_queuedir, *this);
|
||||||
LOGDEB(("BeagleQueueIndexer::processqueue: done: status %d\n", status));
|
LOGDEB(("BeagleQueueIndexer::processqueue: done: status %d\n", status));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user