Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
5fa1e195
Commit
5fa1e195
authored
Jan 11, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distr_info: improve support for Debian based distro
parent
87ba30ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
distr_info
bin/distr_info
+4
-1
No files found.
bin/distr_info
View file @
5fa1e195
...
...
@@ -414,6 +414,7 @@ if distro os-release ; then
# set by os-release:
#PRETTY_NAME
VENDOR_ID
=
"
$ID
"
DISTRIB_CODENAME
=
"
$VERSION_CODENAME
"
case
"
$VENDOR_ID
"
in
ubuntu|reld|rhel|astra|manjaro|redos|msvsphere|alteros|rockylinux|almalinux
)
;;
...
...
@@ -425,6 +426,9 @@ if distro os-release ; then
if
is_numeric
"
$DISTRIB_RELEASE
"
&&
[
"
$DISTRIB_RELEASE
"
-ge
20
]
;
then
VENDOR_ID
=
"
$(
echo
"
$ID_LIKE
"
| lastword
)
"
fi
if
[
"
$VENDOR_ID
"
=
"debian"
]
&&
[
-n
"
$DEBIAN_CODENAME
"
]
;
then
DISTRIB_CODENAME
=
"
$DEBIAN_CODENAME
"
fi
fi
;;
esac
...
...
@@ -434,7 +438,6 @@ if distro os-release ; then
;;
esac
DISTRIB_FULL_RELEASE
=
"
$DISTRIB_RELEASE
"
DISTRIB_CODENAME
=
"
$VERSION_CODENAME
"
elif
distro lsb-release
;
then
DISTRIB_ID
=
$(
cat
$DISTROFILE
| get_var DISTRIB_ID
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment