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
eb49b25c
You need to sign in or sign up before continuing.
Commit
eb49b25c
authored
Dec 04, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add prepare_aptconfig, export OURAPTCONF, OURSOURCES
parent
0c7460a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
hasher
share/eterbuild/functions/hasher
+10
-1
No files found.
share/eterbuild/functions/hasher
View file @
eb49b25c
...
@@ -27,7 +27,8 @@ print_tmp_aptconf()
...
@@ -27,7 +27,8 @@ print_tmp_aptconf()
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
cat
"
$1
"
|
\
cat
"
$1
"
|
\
sed
-e
"s|
\"
/etc/.*apt/sources.list|
\"
$ETERBUILDETC
/apt/sources.list|g"
sed
-e
"s|
\"
/etc/.*apt/sources.list|
\"
$OURTMPDIR
/sources.list|g"
# sed -e "s|\"/etc/.*apt/sources.list|\"$ETERBUILDETC/apt/sources.list|g"
}
}
# workaround about hard coded arch in sources.list
# workaround about hard coded arch in sources.list
...
@@ -43,3 +44,11 @@ print_tmp_sourceslist()
...
@@ -43,3 +44,11 @@ print_tmp_sourceslist()
cat
"
$SLIST
"
|
\
cat
"
$SLIST
"
|
\
sed
-e
"s|i586|
$DEFAULTARCH
|g"
sed
-e
"s|i586|
$DEFAULTARCH
|g"
}
}
prepare_aptconfig
()
{
print_tmp_aptconf
$APTCONF
>
$OURTMPDIR
/apt.conf.
$MENV
||
fatal
"Can't create apt.conf"
print_tmp_sourceslist
$APTCONF
>
$OURTMPDIR
/sources.list.
$MENV
||
fatal
"Can't create sources.list"
export
OURAPTCONF
=
$OURTMPDIR
/apt.conf.
$MENV
export
OURSOURCES
=
$OURTMPDIR
/sources.list.
$MENV
}
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