File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
repos/system_upgrade/cloudlinux/actors/refreshepel Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 9
9
from leapp .libraries .common .config .version import get_target_major_version
10
10
11
11
REPO_DIR = '/etc/yum.repos.d'
12
- EPEL_INSTALL_URL = 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-{}.noarch.rpm' .format (get_target_major_version ())
13
12
14
13
15
14
class RefreshEPEL (Actor ):
@@ -40,8 +39,10 @@ def install_epel_release_package(self, target_url):
40
39
41
40
@run_on_cloudlinux
42
41
def process (self ):
42
+ epel_install_url = 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-{}.noarch.rpm' .format (get_target_major_version ())
43
+
43
44
target_version = int (get_target_major_version ())
44
- target_epel_release = EPEL_INSTALL_URL .format (target_version )
45
+ target_epel_release = epel_install_url .format (target_version )
45
46
46
47
# EPEL release package name is 'epel-release' and the version should match the target OS version
47
48
epel_release_package = 'epel-release'
You can’t perform that action at this time.
0 commit comments