Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-debian-packages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Reform
reform-debian-packages
Commits
9a4728ff
Verified
Commit
9a4728ff
authored
1 year ago
by
Johannes Schauer Marin Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
setup.sh: special handling for BASESUITE being stable-backports and experimental
parent
d75f9ad2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.sh
+35
-4
35 additions, 4 deletions
setup.sh
with
35 additions
and
4 deletions
setup.sh
+
35
−
4
View file @
9a4728ff
...
...
@@ -19,6 +19,21 @@ Components: main
UDebComponents: main
Description: updated packages for mnt reform
EOF
# if OURSUITE is backports, also add the base suite
case
$OURSUITE
in
*
-backports
)
cat
>>
"
$REPREPRO_BASE_DIR
/conf/distributions"
<<
EOF
Codename:
${
OURSUITE
%-backports
}
Label:
$OURLABEL
Suite:
${
OURSUITE
%-backports
}
Architectures:
$HOST_ARCH
$(
test
"
$BUILD_ARCH
"
=
"
$HOST_ARCH
"
||
echo
"
$BUILD_ARCH
"
)
Components: main
UDebComponents: main
Description: updated packages for mnt reform
EOF
;;
esac
cat
>
"
$REPREPRO_BASE_DIR
/conf/options"
<<
EOF
verbose
EOF
...
...
@@ -29,10 +44,26 @@ if [ ! -d "$chdistdata" ]; then
chdist_base create
fi
cat
<<
END
> "
$chdistdata
/base/etc/apt/sources.list"
deb-src
$MIRROR
$BASESUITE
main
deb-src
$MIRROR
experimental main
END
{
echo
"deb-src
$MIRROR
$BASESUITE
main"
;
case
$BASESUITE
in
experimental
)
echo
"deb-src
$MIRROR
unstable main"
;;
unstable
)
:
;;
*
-backports
)
echo
"deb-src
$MIRROR
${
BASESUITE
%-backports
}
main"
echo
"deb-src
$MIRROR
${
BASESUITE
%-backports
}
-updates main"
echo
"deb-src http://security.debian.org/debian-security
${
BASESUITE
%-backports
}
-security main"
;;
*
)
# assume this is a stable release
echo
"deb-src
$MIRROR
$BASESUITE
-updates main"
echo
"deb-src http://security.debian.org/debian-security
$BASESUITE
-security main"
;;
esac
;
}
>
"
$chdistdata
/base/etc/apt/sources.list"
chdist_base apt-get update
mkdir
-p
changes buildlogs
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