[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [craft-blueprints-kde] libs/qt5/qtbase: Use correct api
From: Hannah von Reth <null () kde ! org>
Date: 2018-09-28 8:37:04
Message-ID: E1g5oGm-0006ar-52 () code ! kde ! org
[Download RAW message or body]
Git commit a8a1f1bb4b6e93b76394a23cd6f7d39e6e4ee09f by Hannah von Reth.
Committed on 28/09/2018 at 08:37.
Pushed by vonreth into branch 'master'.
Use correct api
M +4 -2 libs/qt5/qtbase/qtbase.py
https://commits.kde.org/craft-blueprints-kde/a8a1f1bb4b6e93b76394a23cd6f7d39e6e4ee09f
diff --git a/libs/qt5/qtbase/qtbase.py b/libs/qt5/qtbase/qtbase.py
index d3072fa..e02d949 100644
--- a/libs/qt5/qtbase/qtbase.py
+++ b/libs/qt5/qtbase/qtbase.py
@@ -207,7 +207,8 @@ class QtPackage(Qt5CorePackageBase):
parser = configparser.ConfigParser()
parser.read(os.path.join(self.buildDir(), "bin", "qt.conf"))
parser.remove_section("EffectiveSourcePaths")
- parser.write(os.path.join(self.imageDir(), "bin", "qt.conf"))
+ with open(os.path.join(self.imageDir(), "bin", "qt.conf"), "wt") as out:
+ parser.write(out)
# install msvc debug files if available
if CraftCore.compiler.isMSVC():
@@ -229,7 +230,8 @@ class QtPackage(Qt5CorePackageBase):
parser = configparser.ConfigParser()
parser.read(conf)
parser.remove_section("EffectiveSourcePaths")
- parser.write(conf)
+ with open(conf, "wt") as out:
+ parser.write(out)
if CraftCore.compiler.isWindows and CraftCore.settings.getboolean("Packager", "UseCache"):
return utils.system(["qtbinpatcher", "--nobackup",
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic