tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
grantlee: don't canonicalize template paths
Thomas Tuegel
8 years ago
58cf19a9
e6b42d74
+28
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
grantlee
5
grantlee-no-canonicalize-filepath.patch
series
+27
pkgs/development/libraries/grantlee/5/grantlee-no-canonicalize-filepath.patch
···
1
1
+
Index: grantlee-5.1.0/templates/lib/templateloader.cpp
2
2
+
===================================================================
3
3
+
--- grantlee-5.1.0.orig/templates/lib/templateloader.cpp
4
4
+
+++ grantlee-5.1.0/templates/lib/templateloader.cpp
5
5
+
@@ -141,10 +141,6 @@ Template FileSystemTemplateLoader::loadB
6
6
+
+ QLatin1Char('/') + fileName);
7
7
+
const QFileInfo fi(file);
8
8
+
9
9
+
- if (file.exists()
10
10
+
- && !fi.canonicalFilePath().contains(
11
11
+
- QDir(d->m_templateDirs.at(i)).canonicalPath()))
12
12
+
- return Template();
13
13
+
++i;
14
14
+
}
15
15
+
16
16
+
@@ -173,11 +169,6 @@ FileSystemTemplateLoader::getMediaUri(co
17
17
+
+ QLatin1Char('/') + fileName);
18
18
+
19
19
+
const QFileInfo fi(file);
20
20
+
- if (!fi.canonicalFilePath().contains(
21
21
+
- QDir(d->m_templateDirs.at(i)).canonicalPath())) {
22
22
+
- ++i;
23
23
+
- continue;
24
24
+
- }
25
25
+
26
26
+
if (file.exists()) {
27
27
+
auto path = fi.absoluteFilePath();
+1
pkgs/development/libraries/grantlee/5/series
···
1
1
grantlee-nix-profiles.patch
2
2
+
grantlee-no-canonicalize-filepath.patch