Commit 12cd8df9 authored by Lukas Appelhans's avatar Lukas Appelhans

Also skip .MTREE and .Changelog

parent a8252b0a
......@@ -968,7 +968,7 @@ int QueryPerformer::insertFiles(AbstractSQLiteConnection &dbConnection, Package*
QStringList sortedFiles = p->retrieveFiles(Package::FilepathNoPrefix);
sortedFiles.sort();
foreach (const QString &file, sortedFiles) {
if (file == ".PKGINFO" || file == ".INSTALL")
if (file == ".PKGINFO" || file == ".INSTALL" || file == ".MTREE" || file == ".Changelog")
continue;
if (file.endsWith("/")) {
dirs << file;
......
......@@ -673,7 +673,7 @@ QStringList Package::retrieveFiles(FilepathMode mode)
QString backup( table.getDataAt(y, "backup").toString() );
bool ultimatelyOwned( table.getDataAt(y, "ultimateowner").toBool() );
if (file == ".INSTALL" || file == ".PKGINFO")
if (file == ".INSTALL" || file == ".PKGINFO" || file == ".MTREE" || file == ".Changelog")
continue;
prefixedFileList << Config::instance()->rootDir().absoluteFilePath(file);
......
......@@ -506,7 +506,7 @@ bool InstallFunctor::operator()(const ArchiveEntry& currentEntry)
{
QString entryName = currentEntry.getFileName();
if (entryName == ".INSTALL" || entryName == ".PKGINFO")
if (entryName == ".INSTALL" || entryName == ".PKGINFO" || entryName == ".MTREE" || entryName == ".Changelog")
return true;
OperationUtils utils;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment