File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
.github/jobs/configure-checks Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 19
19
20
20
translate () {
21
21
args=" $@ "
22
+ if [ " $distro_id " = ' ID="opensuse-leap"' ]; then
23
+ args=${args/ g++/ gcc-c++}
24
+ fi
22
25
if [ " $distro_id " = " ID=fedora" ] || [ " $distro_id " = ' ID="opensuse-leap"' ]; then
23
26
args=${args/ libcgroup-dev/ libcgroup-devel}
24
27
fi
@@ -46,6 +49,9 @@ setup() {
46
49
if [ " $distro_id " = " ID=fedora" ]; then
47
50
repo-install httpd
48
51
fi
52
+ if [ " $distro_id " = ' ID="opensuse-leap"' ]; then
53
+ repo-install apache2
54
+ fi
49
55
repo-install gcc g++ libcgroup-dev composer
50
56
}
51
57
@@ -58,13 +64,19 @@ repo-install () {
58
64
if [ " $distro_id " = " ID=arch" ]; then
59
65
${cmd} $args -Sy --noconfirm > /dev/null
60
66
else
61
- ${cmd} install $args -y > /dev/null
67
+ ${cmd} install -y $args > /dev/null
62
68
fi
63
69
}
64
70
65
71
repo-remove () {
66
72
args=$( translate $@ )
67
- ${cmd} remove $args -y # >/dev/null
73
+ if [ " $distro_id " = ' ID="opensuse-leap"' ]; then
74
+ ${cmd} remove -y $args > /dev/null || ret=" $? "
75
+ if [ " $ret " -ne " 104" ]; then
76
+ return $?
77
+ fi
78
+ else
79
+ ${cmd} remove -y $args # >/dev/null
68
80
if [ " $distro_id " != " ID=fedora" ]; then
69
81
apt-get autoremove -y 2> /dev/null
70
82
fi
You can’t perform that action at this time.
0 commit comments