diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-08-24 08:55:09 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-08-24 08:55:09 +0000 |
commit | d7400afb0a4cecb5f43c26a73cf2de932feecc99 (patch) | |
tree | a9cfec5517927aa95114d19cb2de357ac606b059 /german/tipp10 | |
parent | d461119058d915c8541f3c96da438fa3af5f5e19 (diff) | |
download | ports-d7400afb0a4cecb5f43c26a73cf2de932feecc99.tar.gz ports-d7400afb0a4cecb5f43c26a73cf2de932feecc99.zip |
Notes
Diffstat (limited to 'german/tipp10')
-rw-r--r-- | german/tipp10/Makefile | 2 | ||||
-rw-r--r-- | german/tipp10/files/patch-sql-connection.h | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/german/tipp10/Makefile b/german/tipp10/Makefile index bef005aa18e9..6c7cbb515b7c 100644 --- a/german/tipp10/Makefile +++ b/german/tipp10/Makefile @@ -7,7 +7,7 @@ PORTNAME= tipp10 PORTVERSION= 2.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= german MASTER_SITES= http://www.tipp10.de/download/ DISTNAME= tipp10_source_v2-0-1 diff --git a/german/tipp10/files/patch-sql-connection.h b/german/tipp10/files/patch-sql-connection.h new file mode 100644 index 000000000000..0bb75dfc878c --- /dev/null +++ b/german/tipp10/files/patch-sql-connection.h @@ -0,0 +1,18 @@ +--- ./sql/connection.h.orig 2007-10-02 20:22:22.000000000 +0800 ++++ ./sql/connection.h 2008-08-24 16:25:30.000000000 +0800 +@@ -170,6 +170,7 @@ + // -> copy database to user home dir
+ QFile file(QCoreApplication::applicationDirPath() + "/" + dbNameTemplate);
+ if (file.copy(dbPath)) {
++ QFile::setPermissions(dbPath, QFile::permissions(dbPath) | QFile::WriteUser);
+ dbExist = true;
+ } else {
+ ErrorMessage *errorMessage = new ErrorMessage();
+@@ -201,6 +202,7 @@ + dir.cd("tipp10");
+ QFile file(dbPath);
+ if (file.copy(dir.path() + "/" + dbNameUser)) {
++ QFile::setPermissions(dir.path() + "/" + dbNameUser, QFile::permissions(dir.path() + "/" + dbNameUser) | QFile::WriteUser);
+ dbPath = dir.path() + "/" + dbNameUser;
+ } else {
+ ErrorMessage *errorMessage = new ErrorMessage();
|