libsForQt5.libqofono: fix substituteAll usage
This commit is contained in:
parent
3c7d6adcc8
commit
1f0044428f
@ -16,7 +16,7 @@ index b5877ed..455167c 100644
|
||||
QString provider = providerString;
|
||||
|
||||
- query.setFocus(QUrl("/usr/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
||||
+ query.setFocus(QUrl("@mobile-broadband-provider-info@/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
||||
+ query.setFocus(QUrl("@mobileBroadbandProviderInfo@/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
||||
|
||||
if (provider.contains("\'")) {
|
||||
provider = provider.replace("\'", "'");
|
||||
@ -25,7 +25,7 @@ index b5877ed..455167c 100644
|
||||
#ifdef QOFONO_PROVISIONING
|
||||
QXmlQuery query;
|
||||
- query.setFocus(QUrl("/usr/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
||||
+ query.setFocus(QUrl("@mobile-broadband-provider-info@/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
||||
+ query.setFocus(QUrl("@mobileBroadbandProviderInfo@/share/mobile-broadband-provider-info/serviceproviders.xml"));
|
||||
|
||||
QString providerStr = provider;
|
||||
if (providerStr.contains("\'")) {
|
||||
|
@ -23,7 +23,7 @@ mkDerivation rec {
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./0001-NixOS-provide-mobile-broadband-provider-info-path.patch;
|
||||
inherit mobile-broadband-provider-info;
|
||||
mobileBroadbandProviderInfo = mobile-broadband-provider-info;
|
||||
})
|
||||
./0001-NixOS-Skip-tests-they-re-shock-full-of-hardcoded-FHS.patch
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user