summaryrefslogtreecommitdiffstats
path: root/tools/common/repositorygen.h
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-03-25 14:18:18 +0100
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-03-25 22:01:22 +0100
commit083df53feb6e36cc954e1316af4445d776fb488a (patch)
treed4f27d986d19b3b3b86c4672c8093fb266a84030 /tools/common/repositorygen.h
parentb8dc0c73135aaf355daf98fabfa18be0caae7140 (diff)
Cleanup.
Iterate just once and remove all tags from existing xml. Throw and print error if we can't open an supported archive. Refactor duplicated copy code - license,translation,ui files. Change-Id: I60e215fdc5591ff9dcb5509db74448298ec6b752 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'tools/common/repositorygen.h')
-rw-r--r--tools/common/repositorygen.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/common/repositorygen.h b/tools/common/repositorygen.h
index 7b312bace..49a81eb1d 100644
--- a/tools/common/repositorygen.h
+++ b/tools/common/repositorygen.h
@@ -48,7 +48,6 @@
namespace QInstallerTools {
-void printRepositoryGenOptions();
struct PackageInfo
{
@@ -65,10 +64,14 @@ enum FilterType {
Exclude
};
+void printRepositoryGenOptions();
QString makePathAbsolute(const QString &path);
+void copyWithException(const QString &source, const QString &target, const QString &kind = QString());
+
+PackageInfoVector createListOfPackages(const QString &packagesDirectory, const QStringList &filteredPackages,
+ FilterType ftype);
QHash<QString, QString> buildPathToVersionMapping(const PackageInfoVector &info);
-void copyWithException(const QString &source, const QString &target, const QString &kind = QString());
void compressPaths(const QStringList &paths, const QString &archivePath);
void compressMetaDirectories(const QString &repoDir, const QString &baseDir,
const QHash<QString, QString> &versionMapping);
@@ -77,8 +80,6 @@ void copyMetaData(const QString &outDir, const QString &dataDir, const PackageIn
const QString &appName, const QString& appVersion, const QString &redirectUpdateUrl = QString());
void copyComponentData(const QString &packageDir, const QString &repoDir, PackageInfoVector *const infos);
-PackageInfoVector createListOfPackages(const QString &packagesDirectory, const QStringList &filteredPackages,
- FilterType ftype);
} // namespace QInstallerTools