Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
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
Anton Palgunov
mkimage-profiles
Commits
e1ce4bd5
Commit
e1ce4bd5
authored
Jul 09, 2019
by
Gleb Fotengauer-Malinovskiy
Committed by
Michael Shigorin
Aug 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
90-enable-repo: uncomment all matching lines; drop always-broken arch logic
parent
f7b0b6fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
90-enable-repo
features.in/repo/image-scripts.d/90-enable-repo
+2
-11
No files found.
features.in/repo/image-scripts.d/90-enable-repo
View file @
e1ce4bd5
#!/bin/sh
#!/bin/sh
# enable online repos if possible, just quit if
anything's wrong
# enable online repos if possible, just quit if
list is absent
repo_source
=
'/etc/apt/sources.list.d/yandex.list'
repo_source
=
'/etc/apt/sources.list.d/yandex.list'
...
@@ -10,13 +10,4 @@ prefix_re="[[:space:]]*rpm[[:space:]]\+\([^[:space:]]\+[[:space:]]\+\)\?"
...
@@ -10,13 +10,4 @@ prefix_re="[[:space:]]*rpm[[:space:]]\+\([^[:space:]]\+[[:space:]]\+\)\?"
host_re
=
"http:
\/\/\(
[^[:space:]]
\+\)
[[:space:]]
\+
"
host_re
=
"http:
\/\/\(
[^[:space:]]
\+\)
[[:space:]]
\+
"
updates_re
=
"
${
prefix_re
}${
host_re
}
\(
[^[:space:]]
\+\/\)\?
"
updates_re
=
"
${
prefix_re
}${
host_re
}
\(
[^[:space:]]
\+\/\)\?
"
# architectures
sed
-i
"s/^#
\(
$updates_re
\)
/
\1
/"
"
$repo_source
"
host_arch
=
"
$(
rpm
--eval
'%_arch'
)
"
[
"
$host_arch
"
=
"x86_64"
]
&&
compat
=
"x86_64-i586"
||
compat
=
[
"
$host_arch
"
=
'armh'
]
&&
noarch
=
||
noarch
=
'noarch'
# turn on unconditionally
for
arch
in
"
$host_arch
"
"
$noarch
"
"
$compat
"
;
do
[
-n
"
$arch
"
]
||
continue
sed
-i
"s/^#
\(
$updates_re$arch
\)
/
\1
/"
"
$repo_source
"
done
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