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
ddce481a
Commit
ddce481a
authored
Oct 31, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm addrepo: use http for ALT archive, add date format checking
parent
0cf73649
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
epm-addrepo
bin/epm-addrepo
+5
-5
No files found.
bin/epm-addrepo
View file @
ddce481a
...
...
@@ -52,16 +52,16 @@ __epm_addrepo_altlinux()
;;
archive
)
datestr
=
"
$2
"
# 2017/12/31
echo
"
$datestr
"
|
grep
-Eq
"^20[0-2][0-9]/[01][0-9]/[0-3][0-9]$"
||
fatal
"use follow date format: 2017/12/31"
# TODO: func?
local arch
=
$(
uname
-m
)
[
"
$arch
"
=
"i686"
]
&&
arch
=
"i586"
echo
""
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"rpm [alt]
f
tp://ftp.altlinux.org/pub/distributions archive/sisyphus/date/
$datestr
/
$arch
classic"
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"rpm [alt]
ht
tp://ftp.altlinux.org/pub/distributions archive/sisyphus/date/
$datestr
/
$arch
classic"
| sudocmd
tee
-a
/etc/apt/sources.list
if
[
"
$arch
"
=
"x86_64"
]
;
then
echo
"rpm [alt]
f
tp://ftp.altlinux.org/pub/distributions archive/sisyphus/date/
$datestr
/
$arch
-i586 classic"
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"rpm [alt]
ht
tp://ftp.altlinux.org/pub/distributions archive/sisyphus/date/
$datestr
/
$arch
-i586 classic"
| sudocmd
tee
-a
/etc/apt/sources.list
fi
echo
"rpm [alt]
f
tp://ftp.altlinux.org/pub/distributions archive/sisyphus/date/
$datestr
/noarch classic"
| sudocmd
tee
-a
/etc/apt/sources.list
echo
"rpm [alt]
ht
tp://ftp.altlinux.org/pub/distributions archive/sisyphus/date/
$datestr
/noarch classic"
| sudocmd
tee
-a
/etc/apt/sources.list
return
0
;;
esac
...
...
@@ -75,7 +75,7 @@ __epm_addrepo_altlinux()
if
[
-z
"
$repo
"
]
;
then
info
"Add branch repo. TODO?"
sudo
do
cmd apt-repo add branch
sudocmd apt-repo add branch
return
fi
...
...
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