Kaydet (Commit) 4941779b authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

Fixes to install nvidia drivers

üst b2ce2988
......@@ -144,7 +144,7 @@ class VideoDevice:
def enableDriver(self):
oldpackage = enabledPackage()
if self.package != oldpackage:
if oldpackage.replace("-", "_") in self._driverPackages():
if oldpackage and oldpackage.replace("-", "_") in self._driverPackages():
call(oldpackage, "Xorg.Driver", "disable")
call(self.package, "Xorg.Driver", "enable")
......@@ -160,7 +160,7 @@ class VideoDevice:
return False
def flags(self):
return self.probe_result["flags"].split(",")
return self.probe_result.get("flags", "").split(",")
def needsScreenSection(self):
flags = self.flags()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment