From 4baf6c2c57b2219ee1973a1608c53a129490ea5a Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Wed, 1 Mar 2017 00:26:37 +0100 Subject: Fix piping a package to appman-controller install-package via stdin Change-Id: I8f29fd2b1ccb7e6c45ddd07071a750cae698ed8b Reviewed-by: Dominik Holland --- src/tools/controller/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/controller/main.cpp b/src/tools/controller/main.cpp index 6d0141be..4b8155aa 100644 --- a/src/tools/controller/main.cpp +++ b/src/tools/controller/main.cpp @@ -562,7 +562,7 @@ void installPackage(const QString &package, const QString &location) throw(Excep throw Exception(Error::IO, "Could not copy from stdin to temporary file %1").arg(package); } - QFileInfo fi(package); + QFileInfo fi(packageFile); if (!fi.exists() || !fi.isReadable() || !fi.isFile()) throw Exception(Error::IO, "Package file is not readable: %1").arg(packageFile); -- cgit v1.2.3