summaryrefslogtreecommitdiffstats
path: root/tools/repogen
diff options
context:
space:
mode:
Diffstat (limited to 'tools/repogen')
-rw-r--r--tools/repogen/repogen.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/repogen/repogen.cpp b/tools/repogen/repogen.cpp
index 1380e4ebf..d319b2c89 100644
--- a/tools/repogen/repogen.cpp
+++ b/tools/repogen/repogen.cpp
@@ -90,14 +90,6 @@ static int printErrorAndUsageAndExit(const QString &err)
return 1;
}
-static QString makeAbsolute(const QString &path)
-{
- QFileInfo fi(path);
- if (fi.isAbsolute())
- return path;
- return QDir::current().absoluteFilePath(path);
-}
-
int main(int argc, char** argv)
{
try {
@@ -188,7 +180,7 @@ int main(int argc, char** argv)
"exclusive!"));
}
- const QString repositoryDir = makeAbsolute(args.first());
+ const QString repositoryDir = QInstallerTools::makePathAbsolute(args.first());
if (remove)
QInstaller::removeDirectory(repositoryDir);