Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:GA
supermin
supermin-kernel_version_compressed.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File supermin-kernel_version_compressed.patch of Package supermin
--- supermin-5.2.1.orig/src/format_ext2_kernel.ml +++ supermin-5.2.1/src/format_ext2_kernel.ml @@ -213,6 +213,16 @@ and get_kernel_version debug kernel_file | None -> (* Try to work it out from the filename instead. *) let basename = Filename.basename kernel_file in + let basename = + let len = String.length basename in + if Filename.check_suffix basename ".xz" || Filename.check_suffix basename ".gz" + then ( + let basename = String.sub basename 0 (len-3) in + basename + ) + else ( + basename + ) in if string_prefix "vmlinuz-" basename || string_prefix "vmlinux-" basename then ( let version = String.sub basename 8 (String.length basename - 8) in
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor