Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
distro_info
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
korinf
distro_info
Commits
07df92d3
Commit
07df92d3
authored
Sep 06, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distro_info: use yum for CentOS/7
parent
2c4ac730
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
distro_info
bin/distro_info
+3
-1
No files found.
bin/distro_info
View file @
07df92d3
...
@@ -48,7 +48,8 @@ override_distrib()
...
@@ -48,7 +48,8 @@ override_distrib()
{
{
[
-n
"
$1
"
]
||
return
[
-n
"
$1
"
]
||
return
VENDOR_ID
=
''
VENDOR_ID
=
''
DISTRIB_ID
=
"
$1
"
DISTRIB_ID
=
"
$(
echo
"
$1
"
|
sed
-e
's|/.*||'
)
"
DISTRIB_RELEASE
=
"
$(
echo
"
$1
"
|
sed
-e
's|.*/||'
)
"
}
}
# Translate DISTRIB_ID to vendor name (like %_vendor does), uses VENDOR_ID by default
# Translate DISTRIB_ID to vendor name (like %_vendor does), uses VENDOR_ID by default
...
@@ -135,6 +136,7 @@ case $DISTRIB_ID in
...
@@ -135,6 +136,7 @@ case $DISTRIB_ID in
Fedora|LinuxXP|ASPLinux|CentOS|RHEL|Scientific|GosLinux|Amzn|RedOS
)
Fedora|LinuxXP|ASPLinux|CentOS|RHEL|Scientific|GosLinux|Amzn|RedOS
)
CMD
=
"dnf-rpm"
CMD
=
"dnf-rpm"
which dnf 2>/dev/null
>
/dev/null
||
CMD
=
yum-rpm
which dnf 2>/dev/null
>
/dev/null
||
CMD
=
yum-rpm
[
"
$DISTRIB_ID
/
$DISTRIB_RELEASE
"
=
"CentOS/7"
]
&&
CMD
=
yum-rpm
;;
;;
Slackware
)
Slackware
)
CMD
=
"slackpkg"
CMD
=
"slackpkg"
...
...
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