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
Nurlan
eepm
Commits
ce10c02a
Commit
ce10c02a
authored
Feb 18, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repofix: replace sources.list only on ALT
parent
2c516fca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
17 deletions
+16
-17
epm-check
bin/epm-check
+3
-0
epm-repofix
bin/epm-repofix
+13
-17
No files found.
bin/epm-check
View file @
ce10c02a
...
...
@@ -74,6 +74,9 @@ case $PMTYPE in
homebrew
)
docmd brew doctor
;;
xbps
)
sudocmd xbps-pkgdb
-a
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
bin/epm-repofix
View file @
ce10c02a
...
...
@@ -46,7 +46,7 @@ __try_fix_apt_source_list()
fi
}
__fix_a
p
t_sources_list
()
__fix_a
l
t_sources_list
()
{
# for beauty spaces
local
SUBST_ALT_RULE
=
's!^(.*)[/ ](ALTLinux|LINUX\@Etersoft)[/ ]*(Sisyphus|p8[/ ]branch|p7[/ ]branch|t7[/ ]branch|c7[/ ]branch|p6[/ ]branch|t6[/ ]branch)[/ ](x86_64|i586|x86_64-i586|noarch) !\1 \2/\3/\4 !gi'
...
...
@@ -77,26 +77,22 @@ epm_repofix()
[
-z
"
$pkg_filenames
"
]
||
fatal
"No arguments are allowed here"
case
$
PMTYP
E
in
apt-rpm
)
case
$
DISTRNAM
E
in
ALTLinux
)
assure_exists apt-repo
[
-n
"
$quiet
"
]
||
docmd apt-repo list
__fix_a
p
t_sources_list /etc/apt/sources.list
__fix_a
p
t_sources_list /etc/apt/sources.list.d/
*
.list
__fix_a
l
t_sources_list /etc/apt/sources.list
__fix_a
l
t_sources_list /etc/apt/sources.list.d/
*
.list
docmd apt-repo list
# FIXME: what the best place?
# rebuild rpm database
#sudocmd rm -fv /var/lib/rpm/__db*
#sudocmd rpm --rebuilddb
;;
yum-rpm|dnf-rpm
)
# FIXME: what the best place?
#sudocmd rm -fv /var/lib/rpm/__db*
#sudocmd rpm --rebuilddb
;;
xbps
)
sudocmd xbps-pkgdb
-a
return
;;
esac
case
$PMTYPE
in
# apt-rpm)
# ;;
# yum-rpm|dnf-rpm)
# ;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
...
...
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