Commit 00e4bfcd authored by Luca Giambonini's avatar Luca Giambonini

skip .BUILDINFO file

parent c2059928
......@@ -955,7 +955,11 @@ int QueryPerformer::insertFiles(AbstractSQLiteConnection &dbConnection, Package*
QStringList sortedFiles = p->retrieveFiles(Package::FilepathNoPrefix);
sortedFiles.sort();
foreach (const QString &file, sortedFiles) {
if (file == QLatin1String(".PKGINFO") || file == QLatin1String(".INSTALL") || file == QLatin1String(".MTREE") || file == QLatin1String(".Changelog"))
if ( file == QLatin1String(".PKGINFO") ||
file == QLatin1String(".BUILDINFO") ||
file == QLatin1String(".INSTALL") ||
file == QLatin1String(".MTREE") ||
file == QLatin1String(".Changelog") )
continue;
if (file.endsWith(QLatin1String("/"))) {
dirs << file;
......
......@@ -673,7 +673,11 @@ QStringList Package::retrieveFiles(FilepathMode mode)
QString backup( table.getDataAt(y, QStringLiteral("backup")).toString() );
bool ultimatelyOwned( table.getDataAt(y, QStringLiteral("ultimateowner")).toBool() );
if (file == QLatin1String(".INSTALL") || file == QLatin1String(".PKGINFO") || file == QLatin1String(".MTREE") || file == QLatin1String(".Changelog"))
if ( file == QLatin1String(".INSTALL") ||
file == QLatin1String(".PKGINFO") ||
file == QLatin1String(".BUILDINFO") ||
file == QLatin1String(".MTREE") ||
file == QLatin1String(".Changelog") )
continue;
prefixedFileList << Config::instance()->rootDir().absoluteFilePath(file);
......
......@@ -505,7 +505,11 @@ bool InstallFunctor::operator()(const ArchiveEntry& currentEntry)
{
QString entryName = currentEntry.getFileName();
if (entryName == QLatin1String(".INSTALL") || entryName == QLatin1String(".PKGINFO") || entryName == QLatin1String(".MTREE") || entryName == QLatin1String(".Changelog"))
if ( entryName == QLatin1String(".INSTALL") ||
entryName == QLatin1String(".PKGINFO") ||
entryName == QLatin1String(".BUILDINFO") ||
entryName == QLatin1String(".MTREE") ||
entryName == QLatin1String(".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