* pbuilder-dist, doc/pbuilder-dist.1:

- Export the distribution and architecture information to the environment
     so that it is available in pbuilderrc, etc. (LP: #628933).
This commit is contained in:
Siegfried-Angel Gevatter Pujals 2010-09-26 17:39:45 +02:00
parent a07da2e246
commit 3515d7ac78
3 changed files with 17 additions and 1 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
ubuntu-dev-tools (0.105) UNRELEASED; urgency=low
* pbuilder-dist, doc/pbuilder-dist.1:
- Export the distribution and architecture information to the environment
so that it is available in pbuilderrc, etc. (LP: #628933).
-- Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com> Sun, 26 Sep 2010 17:36:59 +0200
ubuntu-dev-tools (0.104) experimental; urgency=low
[ Siegfried-Angel Gevatter Pujals ]

View File

@ -99,6 +99,11 @@ saved in the results subdirectory of each build environment.
.PP
The default authentication method is \fBsudo\fP. You can change this by
setting the \fBPBUILDAUTH\fP variable.
.PP
You may also want to know that \fBpbuilder\-dist\fP exports \fBDIST\fP and
\fBARCH\fP environment variables to the invoked process, containing the name
of the distribution and the architecture targeted by the current build. You
can make use of them, for example, in \fBpbuilderrc\fP.
.SH BUGS
If you experience any problem with this script contact me on rainct@ubuntu.com

View File

@ -259,7 +259,10 @@ class pbuilder_dist:
return argument
return '"%s"' % argument
return '%s /usr/sbin/%s %s' % (self.auth, self.builder,
# Export the distribution and architecture information to the
# environment so that it is accessible to ~/.pbuilderrc (LP: #628933).
return '%s ARCH="%s" DIST="%s" /usr/sbin/%s %s' % (self.auth,
self.build_architecture, self.target_distro, self.builder,
' '.join(map(quote, arguments)))
def ask(question):