Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
23825cfc
Commit
23825cfc
authored
Jan 08, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hasher: fix sources.list placement
parent
875f4450
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
hasher
share/eterbuild/functions/hasher
+11
-6
No files found.
share/eterbuild/functions/hasher
View file @
23825cfc
...
@@ -30,17 +30,21 @@ print_tmp_aptconf()
...
@@ -30,17 +30,21 @@ print_tmp_aptconf()
sed
-e
"s|
\"
.*/sources.list|
\"
$OURTMPDIR
/sources.list|g"
sed
-e
"s|
\"
.*/sources.list|
\"
$OURTMPDIR
/sources.list|g"
}
}
# printout sources.list with filtering
# printout sources.list with filtering
from apt.conf
# workaround about hard coded arch in sources.list
# workaround about hard coded arch in sources.list
print_tmp_sourceslist
()
print_tmp_sourceslist
()
{
{
local
SLIST
local
SLIST
test
-r
"
$1
"
||
fatal
"
$1
is missed"
test
-r
"
$1
"
||
fatal
"
$1
is missed"
# Note: /etc/apt and /etc/eterbuild/apt is supported
# Note: /etc/apt and /etc/eterbuild/apt is supported
SLIST
=
`
cat
"
$1
"
|
\
if
echo
$1
|
grep
-q
"^/etc"
;
then
sed
-e
"s|
\"
/etc/.*apt/sources.list|
\"
$ETERBUILDETC
/apt/sources.list|g"
|
\
SLIST
=
`
cat
"
$1
"
|
\
grep
"/sources.list"
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
grep
"/sources.list"
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
#SLIST="$ETERBUILDETC/apt/`basename $SLIST`"
else
SLIST
=
`
cat
"
$1
"
|
\
sed
-e
"s|
\"
/etc/.*apt/sources.list|
\"
$ETERBUILDETC
/apt/sources.list|g"
|
\
grep
"/sources.list"
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
fi
test
-r
"
$SLIST
"
||
fatal
"'
$SLIST
' - sources.list path from
$1
is missed"
test
-r
"
$SLIST
"
||
fatal
"'
$SLIST
' - sources.list path from
$1
is missed"
cat
"
$SLIST
"
|
\
cat
"
$SLIST
"
|
\
sed
-e
"s|i586|
$DEFAULTARCH
|g"
sed
-e
"s|i586|
$DEFAULTARCH
|g"
...
@@ -54,7 +58,8 @@ prepare_aptconfig()
...
@@ -54,7 +58,8 @@ prepare_aptconfig()
print_tmp_sourceslist
$APTCONF
>
$OURSOURCES
||
fatal
"Can't create sources.list"
print_tmp_sourceslist
$APTCONF
>
$OURSOURCES
||
fatal
"Can't create sources.list"
if
[
-n
"
$ETERBUILD_APTREPO
"
]
;
then
if
[
-n
"
$ETERBUILD_APTREPO
"
]
;
then
cat
<<
EOF
>>
$OURSOURCES
cat
<<
EOF
>>
$OURSOURCES
# Apply repo from
$ETERBUILD_APTREPO
variable
# Apply repo(s) from ETERBUILD_APTREPO variable
$ETERBUILD_APTREPO
$ETERBUILD_APTREPO
EOF
EOF
fi
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