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
5e2a54d3
Commit
5e2a54d3
authored
Jun 26, 2024
by
Ivan Mazhukin
Committed by
Vitaly Lipatov
Nov 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repofix: fix regex pattern (eterbug #17440)
parent
8fe62443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
epm-repofix
bin/epm-repofix
+14
-9
No files found.
bin/epm-repofix
View file @
5e2a54d3
...
...
@@ -83,7 +83,7 @@ __alt_replace_sign_name()
__replace_text_in_alt_repo
"/^ *#/! s!
\[
sisyphus
\]
!
$TO
!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
updates
\]
!
$TO
!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
cert[789]
\]
!
$TO
!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
[tcp][1-3]?[
6-90
][.f]?[0-9]?
\]
!
$TO
!g"
__replace_text_in_alt_repo
"/^ *#/! s!
\[
[tcp][1-3]?[
0-9
][.f]?[0-9]?
\]
!
$TO
!g"
}
__alt_repofix
()
...
...
@@ -97,7 +97,7 @@ __alt_repofix()
fi
}
__alt_branch_reg
=
'[tcp][1-3]?[
6-90
][.f]?[0-9]?'
__alt_branch_reg
=
'[tcp][1-3]?[
0-9
][.f]?[0-9]?'
#__switch_repo_to()
epm_reposwitch
()
...
...
@@ -115,13 +115,18 @@ epm_reposwitch()
__alt_repofix
"
$TO
"
# TODO: improve for c10f1?
if
[
"
$TO
"
=
"p10"
]
;
then
echo
'%_priority_distbranch $TO'
>
/etc/rpm/macros.d/
$TO
elif
[
"
$TO
"
=
"p11"
]
;
then
echo
'%_priority_distbranch p11'
>
/etc/rpm/macros.d/p11
else
rm
-fv
/etc/rpm/macros.d/
{
p10,p11
}
fi
case
$TO
in
"p10"
|
"p11"
|
"Sisyphus"
)
rm
-fv
/etc/rpm/macros.d/
{
p10,p11
}
[
"
$TO
"
=
"Sisyphus"
]
&&
TO
=
"sisyphus"
echo
"%_priority_distbranch
$TO
"
>
/etc/rpm/macros.d/priority_distbranch
;;
*
)
rm
-fv
/etc/rpm/macros.d/
{
p10,p11,priority_distbranch
}
;;
esac
#epm repo list
}
...
...
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