poke syscoca immediately
This commit is contained in:
parent
82eee5c3b7
commit
c872553117
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
#include "package.h"
|
#include "package.h"
|
||||||
|
|
||||||
|
#include <QDBusInterface>
|
||||||
|
#include <QDBusPendingCall>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QIODevice>
|
#include <QIODevice>
|
||||||
#include <QRegExp>
|
#include <QRegExp>
|
||||||
@ -880,6 +882,8 @@ bool PackagePrivate::installPackage(const QString &package, const QString &packa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDBusInterface sycoca("org.kde.kded", "/kbuildsycoca");
|
||||||
|
sycoca.asyncCall("recreate");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -927,6 +931,8 @@ bool PackagePrivate::uninstallPackage(const QString &packageName, const QString
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QDBusInterface sycoca("org.kde.kded", "/kbuildsycoca");
|
||||||
|
sycoca.asyncCall("recreate");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user