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
9606806d
Commit
9606806d
authored
Mar 28, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hasher: add workaround for commented lines in apt.conf, print out used apt.conf.
parent
989d6514
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
hasher
share/eterbuild/functions/hasher
+6
-2
No files found.
share/eterbuild/functions/hasher
View file @
9606806d
...
...
@@ -59,14 +59,15 @@ print_tmp_sourceslist()
{
local
SLIST
test
-r
"
$1
"
||
fatal
"
$1
is missed"
# TODO add comments support
# Note: /etc/apt and /etc/eterbuild/apt is supported
if
rhas
"
$1
"
"^/etc"
;
then
SLIST
=
`
cat
"
$1
"
|
\
grep
"/sources.list"
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
grep
"/sources.list"
|
tail
-n1
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
else
SLIST
=
`
cat
"
$1
"
|
\
sed
-e
"s|
\"
/etc/.*apt/sources.list|
\"
$ETERBUILDETC
/apt/sources.list|g"
|
\
grep
"/sources.list"
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
grep
"/sources.list"
|
tail
-n1
|
sed
-e
's|.*"\(.*\)".*|\1|g'
`
fi
[
-n
"
$SLIST
"
]
||
SLIST
=
"/etc/apt/sources.list"
test
-r
"
$SLIST
"
||
fatal
"'
$SLIST
' - sources.list path from
$1
is missed"
...
...
@@ -93,6 +94,9 @@ EOF
fi
[
-n
"
$QUIETMODE
"
]
&&
return
echo
echog
"Apt conf
$APTCONF
:"
cat
$APTCONF
echo
echog
"Apt sources from
$APTCONF
:"
cat
$OURSOURCES
|
grep
-v
"^#"
|
grep
-v
"^
\$
"
|
grep
rpm |
sed
-e
"s|rpm| rpm|"
echo
...
...
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