Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
package-helpers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trisquel
package-helpers
Commits
93c83f59
Commit
93c83f59
authored
2 years ago
by
Ruben Rodriguez
Browse files
Options
Downloads
Patches
Plain Diff
Corrected handling of external repositories
parent
f3871984
No related branches found
No related tags found
No related merge requests found
Pipeline
#706
passed
2 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/config
+7
-7
7 additions, 7 deletions
helpers/config
with
7 additions
and
7 deletions
helpers/config
+
7
−
7
View file @
93c83f59
...
...
@@ -123,17 +123,17 @@ if [ "1$EXTERNAL" != "1" ]; then
if
eval echo
"
$EXTERNAL
"
|
grep
"archive.ubuntu.com"
|
grep
-qv
-e
updates
-e
security
-e
backports
;
then
RELNAME
=
$(
eval echo
"
$EXTERNAL
"
|
cut
-d
' '
-f
3
)
COMPONENTS
=
$(
eval echo
"
$EXTERNAL
"
|
cut
-d
' '
-f
4-
)
echo
"deb-src http://archive.ubuntu.com/ubuntu/
$RELNAME
$COMPONENTS
"
>
${
LOCAL_APT
}
/etc/apt
.
sources.list
echo
"deb-src http://archive.ubuntu.com/ubuntu/
${
RELNAME
}
-updates
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
.
sources.list
echo
"deb-src http://archive.ubuntu.com/ubuntu/
${
RELNAME
}
-security
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
.
sources.list
echo
"deb-src http://archive.ubuntu.com/ubuntu/
$RELNAME
$COMPONENTS
"
>
${
LOCAL_APT
}
/etc/apt
/
sources.list
echo
"deb-src http://archive.ubuntu.com/ubuntu/
${
RELNAME
}
-updates
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
/
sources.list
echo
"deb-src http://archive.ubuntu.com/ubuntu/
${
RELNAME
}
-security
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
/
sources.list
elif
eval echo
"
$EXTERNAL
"
|
grep
"ftp.debian.org"
|grep
-qv
-e
updates
-e
security
-e
backports
-e
testing
-e
sid
-e
unstable
-e
experimental
;
then
RELNAME
=
$(
eval echo
"
$EXTERNAL
"
|
cut
-d
' '
-f
3
)
COMPONENTS
=
$(
eval echo
"
$EXTERNAL
"
|
cut
-d
' '
-f
4-
)
echo
"deb-src http://deb.debian.org/debian
$RELNAME
$COMPONENTS
"
>
${
LOCAL_APT
}
/etc/apt
.
sources.list
echo
"deb-src http://deb.debian.org/debian
${
RELNAME
}
-updates
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
.
sources.list
echo
"deb-src http://security.debian.org/debian-security/
${
RELNAME
}
-security
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
.
sources.list
echo
"deb-src http://deb.debian.org/debian
$RELNAME
$COMPONENTS
"
>
${
LOCAL_APT
}
/etc/apt
/
sources.list
echo
"deb-src http://deb.debian.org/debian
${
RELNAME
}
-updates
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
/
sources.list
echo
"deb-src http://security.debian.org/debian-security/
${
RELNAME
}
-security
$COMPONENTS
"
>>
${
LOCAL_APT
}
/etc/apt
/
sources.list
else
eval echo
"
$EXTERNAL
"
>
${
LOCAL_APT
}
/etc/apt
.
sources.list
eval echo
"
$EXTERNAL
"
>
${
LOCAL_APT
}
/etc/apt
/
sources.list
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment