Commit 8a498cf1 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Rebuild package when Debian files have changed.

Reviewed-by: kh1
parent 191df5b1
......@@ -346,6 +346,19 @@ bool MaemoPackageCreationStep::packagingNeeded() const
return true;
const ProjectExplorer::Project * const project = target()->project();
const MaemoTemplatesManager * const templatesManager
= MaemoTemplatesManager::instance();
const QString debianPath = templatesManager->debianDirPath(project);
if (packageInfo.lastModified() <= QFileInfo(debianPath).lastModified())
return true;
const QStringList debianFiles = templatesManager->debianFiles(project);
foreach (const QString &debianFile, debianFiles) {
const QString absFilePath = debianPath + QLatin1Char('/') + debianFile;
if (packageInfo.lastModified() <= QFileInfo(absFilePath).lastModified())
return true;
return false;
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