if( !f.exists() )
return;
+ bool warnAllPinned = false;
if( f.open(QIODevice::ReadOnly | QIODevice::Text ) )
{
qDebug() << "apt preferences exist: reading pinned packages";
while( !f.atEnd() )
{
QString line = f.readLine().trimmed();
+
+ if( line=="Package: *" || line=="Package:*")
+ warnAllPinned = true;
+
if( line.startsWith("Package:") ) {
pinned_packages++;
QString pkg = line.mid(8).trimmed();
f.close();
qDebug() << "read" << pinned_packages << "pinned packages";
}
+
+ if( warnAllPinned ) {
+ iMainWindow->notifyDialog("Warning","You have pinned packages with '*' in apt preferences. It is strongly recommended to "
+ "remove such settings as they can result in unexpected behavior of Faster Application Manager.");
+ }
}
bool AAptInterface::loadInstallFiles(QStringList files_)