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
c9b0b826
Commit
c9b0b826
authored
5 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add epm repo clean|save|restore (just skeleton)
parent
e20b8b4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
4 deletions
+60
-4
TODO
TODO
+1
-3
epm-repo
bin/epm-repo
+13
-1
epm-reposave
bin/epm-reposave
+46
-0
No files found.
TODO
View file @
c9b0b826
apt-mark (для работы autoremove)
repack: проверять, если нет входного файла; писать полный путь к выходному файлу
apt-mark (для работы autoremove and autoorphans) - помечать то, что удалять не следует
apt-mark hold unhold showhold auto manual showauto showmanual
https://manpages.ubuntu.com/manpages/bionic/man8/apt-mark.8.html
...
...
This diff is collapsed.
Click to expand it.
bin/epm-repo
View file @
c9b0b826
...
...
@@ -36,11 +36,23 @@ epm_repo()
load_helper epm-repofix
epm_repofix
"
$@
"
;;
clean
)
# HELPCMD: remove temp. repos
# TODO: check for ALT
sudocmd apt-repo
$dryrun
clean
;;
save
)
load_helper epm-reposave
epm_reposave
"
$@
"
;;
restore
)
load_helper epm-reposave
epm_reporestore
"
$@
"
;;
add
)
# HELPCMD: add package repo (etersoft, autoimports, archive 2017/12/31); run with param to get list
load_helper epm-addrepo
epm_addrepo
"
$@
"
;;
rm
|
remove
)
# HELPCMD: remove repository from sources list
rm
|
remove
)
# HELPCMD: remove repository from sources list
(epm repo remove all for all)
load_helper epm-removerepo
epm_removerepo
"
$@
"
;;
...
...
This diff is collapsed.
Click to expand it.
bin/epm-reposave
0 → 100644
View file @
c9b0b826
#!/bin/sh
#
# Copyright (C) 2020 Etersoft
# Copyright (C) 2020 Vitaly Lipatov <lav@etersoft.ru>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
load_helper epm-sh-altlinux
epm_reposave
()
{
case
$PMTYPE
in
apt-rpm
)
fatal
"TODO"
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
esac
}
epm_reporestore
()
{
case
$PMTYPE
in
apt-rpm
)
fatal
"TODO"
;;
*
)
fatal
"Have no suitable command for
$PMTYPE
"
;;
esac
}
This diff is collapsed.
Click to expand it.
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