forked from qt-creator/qt-creator
Maemo: Expand wildcards for deployment information.
Reviewed-by: kh1
This commit is contained in:
@@ -80,10 +80,8 @@ bool MaemoDeployableListModel::buildModel()
|
|||||||
installs.targetPath));
|
installs.targetPath));
|
||||||
}
|
}
|
||||||
foreach (const MaemoProFileWrapper::InstallsElem &elem, installs.normalElems) {
|
foreach (const MaemoProFileWrapper::InstallsElem &elem, installs.normalElems) {
|
||||||
foreach (const QString &file, elem.files) {
|
foreach (const QString &file, elem.files)
|
||||||
m_deployables << MaemoDeployable(m_proFileWrapper->absFilePath(file),
|
m_deployables << MaemoDeployable(file, elem.path);
|
||||||
elem.path);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_modified = true; // ???
|
m_modified = true; // ???
|
||||||
|
|||||||
@@ -54,7 +54,9 @@ MaemoProFileWrapper::InstallsList MaemoProFileWrapper::installs() const
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QStringList &files = varValues(filesVar(elem));
|
const QStringList &files
|
||||||
|
= m_proFileReader->absoluteFileValues(filesVar(elem),
|
||||||
|
m_proDir.path(), QStringList() << m_proDir.path(), m_proFile);
|
||||||
|
|
||||||
if (elem == TargetVar) {
|
if (elem == TargetVar) {
|
||||||
if (!list.targetPath.isEmpty()) {
|
if (!list.targetPath.isEmpty()) {
|
||||||
@@ -63,11 +65,8 @@ MaemoProFileWrapper::InstallsList MaemoProFileWrapper::installs() const
|
|||||||
}
|
}
|
||||||
list.targetPath = paths.first();
|
list.targetPath = paths.first();
|
||||||
} else {
|
} else {
|
||||||
if (files.isEmpty()) {
|
if (files.isEmpty())
|
||||||
qWarning("Error: Variable %s has no RHS.",
|
|
||||||
qPrintable(filesVar(elem)));
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
list.normalElems << InstallsElem(elem, paths.first(), files);
|
list.normalElems << InstallsElem(elem, paths.first(), files);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user