Revision 25792,
613 bytes
checked in by jdreed, 12 years ago
(diff) |
Update for sbuild 0.62.6:
- sbuild no longer passes its configuration as environment variables
(e.g. SBUILD_BUILD_CONF_DISTRIBUTION). Replace this functionality with
our own variable, DEBATHENA_BUILD_DIST
- update chroot-sources to use DEBATHENA_BUILD_DIST and fallback to
guessing intelligently, rather than constructing invalid sources.list
files
- update sbuildhack to set the new environment variable (this also requires
that the variable be filtered in ~/.sbuildrc)
- update daschroot and do-build to set the new environment variable instead
of the old one.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[25116] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # Gives you an interactive shell with Debathena repositories configured |
---|
| 4 | |
---|
[25118] | 5 | if [ -z "$1" ] || [ -z "$2" ]; then |
---|
| 6 | echo "usage: daschroot <dist> <arch>" |
---|
[25116] | 7 | exit 1 |
---|
| 8 | fi |
---|
[25118] | 9 | dist="$1" |
---|
| 10 | arch="$2" |
---|
| 11 | shift 2 |
---|
[25116] | 12 | |
---|
[25747] | 13 | : ${DA_SCRIPTS_DIR="$(dirname "$0")"} |
---|
| 14 | |
---|
[25118] | 15 | if ! schroot -c "$dist-$arch-sbuild" -i >/dev/null; then |
---|
[25116] | 16 | exit $? |
---|
| 17 | fi |
---|
| 18 | |
---|
[25118] | 19 | session=$(schroot -c "$dist-$arch-sbuild" -b) |
---|
[25792] | 20 | schroot -c "$session" -r -u root -- env DEBATHENA_BUILD_DIST="$dist" "$(readlink -f "$DA_SCRIPTS_DIR/chroot-sources")" |
---|
[25124] | 21 | if [ "$#" -gt 0 ]; then |
---|
| 22 | echo "I: Entering schroot session $session" |
---|
| 23 | fi |
---|
[25116] | 24 | schroot -c "$session" -r "$@" |
---|
| 25 | schroot -c "$session" -e |
---|
Note: See
TracBrowser
for help on using the repository browser.