diff options
author | rafan <rafan@FreeBSD.org> | 2008-08-24 08:55:09 +0000 |
---|---|---|
committer | rafan <rafan@FreeBSD.org> | 2008-08-24 08:55:09 +0000 |
commit | 3ba5b8b6b5f6b3029e2d4ca4a287f2214d1fff5e (patch) | |
tree | 7c96ebb9dfb2fa013ac62d6e222460ff6be07044 /german | |
parent | 12d8c3e9bb6b0e9f43ed6753cc21bb0dedaccf19 (diff) | |
download | FreeBSD-ports-3ba5b8b6b5f6b3029e2d4ca4a287f2214d1fff5e.zip FreeBSD-ports-3ba5b8b6b5f6b3029e2d4ca4a287f2214d1fff5e.tar.gz |
- Fix readonly database problem
- Bump PORTREVISION
PR: ports/126767
Submitted by: Heiner <h.eichmann at gmx.de> (maintainer)
Diffstat (limited to 'german')
-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 bef005a..6c7cbb5 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 0000000..0bb75df --- /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();
|