-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
70 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from __future__ import absolute_import | ||
from os import path | ||
|
||
# The file is created by /etc/kernel/postinst.d/unattended-upgrades (part of unattended-upgrades pkg) | ||
REBOOT_NEEDED_FLAG = "/var/run/reboot-required" | ||
|
||
|
||
class AptTracerApp: | ||
pass | ||
|
||
|
||
def collect_apps(plugin=None): | ||
apps = [] | ||
if path.isfile(REBOOT_NEEDED_FLAG): | ||
app = AptTracerApp() | ||
app.name = "kernel" | ||
app.helper = "You will have to reboot your computer" | ||
app.type = "static" | ||
apps.append(app) | ||
return apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from __future__ import absolute_import | ||
from os import path | ||
|
||
# The path is defined in zypper, see https://github.com/openSUSE/libzypp/blob/master/zypp/target/TargetImpl.cc | ||
REBOOT_NEEDED_FLAG = "/var/run/reboot-needed" | ||
|
||
|
||
class ZypperTracerApp: | ||
pass | ||
|
||
|
||
def collect_apps(plugin=None): | ||
apps = [] | ||
if path.isfile(REBOOT_NEEDED_FLAG): | ||
app = ZypperTracerApp() | ||
app.name = "kernel" | ||
app.helper = "You will have to reboot your computer" | ||
app.type = "static" | ||
apps.append(app) | ||
return apps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters