nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 17 lines 804 B view raw
1--- a/src/qml/common/qv4compileddata.cpp 2+++ b/src/qml/common/qv4compileddata.cpp 3@@ -178,6 +178,14 @@ bool CompilationUnit::saveToDisk(const QUrl &unitUrl, QString *errorString) 4 return false; 5 } 6 7+ if (unitUrl.path().startsWith(QStringLiteral("@nixStore@"))) { 8+ // We don't store bytecode for bare QML files in the nix store as the 9+ // paths will change every time the application updates, filling caches 10+ // endlessly with junk. 11+ *errorString = QStringLiteral("Refusing to save bytecode for bare @nixStore@ path."); 12+ return false; 13+ } 14+ 15 return SaveableUnitPointer(unitData()).saveToDisk<char>( 16 [&unitUrl, errorString](const char *data, quint32 size) { 17 const QString cachePath = localCacheFilePath(unitUrl);