Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
eb649db9
Commit
eb649db9
authored
5 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Fixed Debian kernel cleaning
parent
0703dbf5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernels_cleaner.py
+3
-1
3 additions, 1 deletion
kernels_cleaner.py
with
3 additions
and
1 deletion
kernels_cleaner.py
+
3
−
1
View file @
eb649db9
...
...
@@ -63,7 +63,9 @@ def clean_kernels():
try
:
current_str
=
out
.
split
(
'
'
)[
2
]
if
current_str
.
endswith
(
'
-generic
'
):
current_str
=
current_str
[:
-
8
]
current_str
=
current_str
[:
-
len
(
'
-generic
'
)]
elif
current_str
.
endswith
(
'
-amd64
'
):
current_str
=
current_str
[:
-
len
(
'
-amd64
'
)]
current
=
[
int
(
v
)
for
v
in
current_str
.
replace
(
'
-
'
,
'
.
'
).
split
(
'
.
'
)]
except
Exception
as
e
:
log
(
RED
+
'
Failed to get current kernel.
'
+
DEFAULT
+
'
\n
Error:
'
+
str
(
e
),
error
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment