145 Commits

Author SHA1 Message Date
Bilal Akhtar
1747986a88 pbuilder-dist: Override the default build result location if
--buildresult is specified.
2010-12-17 13:47:48 +03:00
Stefano Rivera
53652d8cee pbuilder-dist: Fix typo in local archive support, introduced in 0.107. 2010-12-11 12:35:18 +02:00
Stefano Rivera
cbbd22fa5b Pass --debootstrap qemu-debootstrap as separate arguments 2010-12-02 10:25:31 +02:00
Stefano Rivera
67734216ab Add bidirectional workarounds for LP: #599695 (pbuilder uses the host
apt keyring). Complain if the target's keyring isn't installed.
2010-12-02 09:37:44 +02:00
Stefano Rivera
27365f9dd4 Set HOME so pbuilder reads .pbuilderrc 2010-12-02 09:30:21 +02:00
Stefano Rivera
b2a400fe50 Pass --basetgz foo as separate arguments 2010-12-02 00:56:56 +02:00
Stefano Rivera
43781fb79a Compress Vertical Whitespace 2010-11-23 09:00:16 +02:00
Stefano Rivera
afb27f1e1b Minor tweaks 2010-11-23 08:56:23 +02:00
Stefano Rivera
b78b21f43e Whitespace -> PEP-8 2010-11-23 08:54:42 +02:00
Stefano Rivera
04eb3ada8b Catch OSErrors when creating directories (LP: #671067) 2010-11-22 14:29:52 +02:00
Stefano Rivera
7126a9e894 * pbuilder-dist:
- Refactor to use subprocess.popen instead of os.system (LP: #398974)
2010-11-22 14:26:10 +02:00
Stefano Rivera
2f4abf3d71 Print errors to stderr 2010-11-22 13:33:19 +02:00
Stefano Rivera
781d077af8 Check for builder in sbin paths even if they aren't in PATH 2010-11-22 13:25:55 +02:00
Iain Lane
230cc212ce pbuilder-dist: Explicitly use debian keyring when working with a
Debian chroot, working around #599695
2010-10-29 14:54:02 +01:00
Siegfried-Angel Gevatter Pujals
3515d7ac78 * 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).
2010-09-26 17:39:45 +02:00
Benjamin Drung
0189b27604 Remove trailing tab. 2010-09-25 13:13:59 +02:00
Siegfried-Angel Gevatter Pujals
2c2ba94a96 * pbuilder-dist:
- Fix regression where pbuilder would get an empty string as first
     positional argument.
   - Update --debug-echo so that it doesn't hide empty parameters (now
     that they are wrapped around quotes they are significant).
2010-09-25 10:47:48 +02:00
Siegfried-Angel Gevatter Pujals
ebff8fe69f * doc/pbuilder-dist.1:
- Move the documentation for --main-only (previously "mainonly") and
     --debug-echo to a new Options section.
* doc/pbuilder-dist.1: update manpage to indicate general architecture
2010-09-21 21:48:33 +02:00
Siegfried-Angel Gevatter Pujals
f0db65419b pbuilder-dist: wrap a couple long lines. 2010-09-21 21:27:52 +02:00
Siegfried-Angel Gevatter Pujals
8fda1ebdc1 Wrap any extra (user) arguments appended to the pbuilder command with
quotation marks, when needed (LP: #398989).
2010-09-21 21:25:33 +02:00
Siegfried-Angel Gevatter Pujals
4ca97770da * pbuilder-dist:
- Do not show a warning when "experimental" is used; there is no
     debootstrap file for it but it should just work anyway.
* bash_completion/pbuilder-dist:
   - Enable auto-completion for "pbuilder-experimental".
2010-09-21 20:45:45 +02:00
Emmet Hikory
2b34773630 pbuilder-dist: change requested/system arch order in check (LP: #557097) 2010-04-20 06:25:19 +09:00
Emmet Hikory
afdf9bfd63 pbuilder-dist: add self. before target_distro in powerpc check 2010-03-08 21:07:31 +09:00
Emmet Hikory
e5862f49c9 * pbuilder-dist: allow any foreign chroot (may not work, but we can try)
* docs/pbuilder-dist.1: update manpage to indicate general architecture
2010-03-08 18:54:54 +09:00
Emmet Hikory
6661936718 pbuilder-dist: change --mirror logic to use -ports when appropriate 2010-02-03 15:26:40 -08:00
Emmet Hikory
384cba2e19 pbuilder-dist: use --arch=foo rather than --arch foo for debootstrap 2010-02-03 15:06:03 -08:00
Emmet Hikory
54b102a92d s/=/ / in pbuilder-dist 2010-02-03 15:01:48 -08:00
Emmet Hikory
5a62f49527 elif is nicer than else if 2010-02-03 14:58:45 -08:00
Emmet Hikory
bffe719703 Fix bugs in architecture-switching 2010-02-03 14:38:27 -08:00
Emmet Hikory
5120e41e6a pbuilder-dist: Allow architecture-switching to armel on i386/amd64 2010-02-03 14:13:33 -08:00
Siegfried-Angel Gevatter Pujals
dc678ec284 * bash_completion/pbuilder-dist:
- Enable tab-completion for pbuilder-lucid and cowbuilder-lucid.
2010-02-03 12:37:19 +01:00
Iain Lane
df9a4986c5 pbuilder lives in /usr/sbin, not /usr/bin 2010-01-15 22:27:26 +00:00
Siegfried-Angel Gevatter Pujals
dc291e72df pbuilder-dist: some cleanup to --debug-echo's output. 2010-01-15 14:35:28 +01:00
Siegfried-Angel Gevatter Pujals
ee9561ae59 * pbuilder-dist:
- Set "--mirror" option also for Ubuntu chroots, so that they work
     on Debian.
2010-01-15 14:26:39 +01:00
Siegfried-Angel Gevatter Pujals
d97b54fc0a * pbuilder-dist, doc/pbuilder-dist.1:
- Add "--debug-echo" option which prints the resulting pbuilder/cowbuilder
     commands instead of executing it.
2009-11-17 19:50:26 +01:00
Iain Lane
2c4db266b4 Don't pass --logfile if logging in
pbuilder-dist: Don't pass --logfile if we are trying to log in to the
chrootthe logfile option swallows the prompt, and we probably don't
want to log if we are using login anyway.
2009-11-05 14:18:29 +00:00
Siegfried-Angel Gevatter Pujals
ab78b51a9f * debian/control:
- Improve description of pbuilder-dist and mention cowbuilder-dist.
  * pbuilder-dist:
     - Abort if the host's architecture can't be determined.
     - Error out instead of showing a traceback if pbuilder-dist is called
       without any argument.
  * pbuilder-dist, ubuntutools/misc.py:
     - Move the functions used to determine the hosts architecture and
       distribution to the ubuntutools.misc module.
2009-10-25 13:57:39 +01:00
Siegfried-Angel Gevatter Pujals
9842049f21 Change pbuilder-dist header to mention cowbuilder in addition to pbuilder. 2009-08-16 00:20:27 +02:00
Siegfried-Angel Gevatter Pujals
1028885576 If there's a "etc/<distro>/apt.conf" file inside the build result
directory, pass it to pbuilder as --aptconfdir. Thanks to Paul Novotny
and Ryan Pavlik (LP: #363043).
2009-08-16 00:18:24 +02:00
Siegfried-Angel Gevatter Pujals
5069952a4a * pbuilder-dist:
- Expand "~" in PBUILDFOLDER to the user's home directory.
2009-08-16 00:12:37 +02:00
Siegfried-Angel Gevatter Pujals
ad0ee7b350 * pbuilder-dist:
- Fallback to calling lsb_release if /etc/lsb-release doesn't
     exist; this makes it possible to run pbuilder-dist on Debian.
2009-04-18 23:38:52 +02:00
Siegfried-Angel Gevatter Pujals
0bb9ebc0d8 * pbuilder-dist:
- Add squeeze as a Debian distribution. Thanks to Marco Rodrigues.
2009-03-28 15:19:36 +01:00
Siegfried-Angel Gevatter Pujals
0fecbc40ba pbuilder-dist: check if package debootstrap is installed (LP: #334848) 2009-03-04 19:13:29 +01:00
Siegfried-Angel Gevatter Pujals
68e7eafe79 pbuilder-dist: abort if pbuilder/cowbuilder is not installed. 2009-03-04 19:00:57 +01:00
Siegfried-Angel Gevatter Pujals
7a5865fd07 pbuilder-dist: abort if the value of builder isn't recognized. 2009-03-04 18:52:45 +01:00
Siegfried-Angel Gevatter Pujals
18f87873a4 * bash-completion/pbuilder-dist: recognize cowbuilder- and -jaunty.
* pbuilder-dist:
   - Fixed a bug which broke pbuilder-dist when "build" was omited; just
     giving a .dsc works now.
   - {p,cow}builder-dist will now complain if you try to build a .changes
     file (or anything else that isn't a .dsc).
2009-02-05 16:50:19 +01:00
Iain Lane
07ceae19b3 Merge jpds's quoting fix 2009-01-11 17:34:00 +00:00
Jonathan Davies
c1b9bd2081 pbuilder-dist: Added missing quote. 2009-01-11 17:29:28 +00:00
Jonathan Davies
1fa547d059 pbuilder-dist: Remove extra ". 2009-01-11 17:23:03 +00:00
Siegfried-Angel Gevatter Pujals
4e476d4755 - Add compatibility for cowbuilder.
- Fix the mainonly support.
  - Rename build.log to last_operation.log.
* pbuilder-dist, pbuilder-dist.new:
  - Replace pbuilder-dist with pbuilder-dist.new.
* debian/links:
  - Symlink /usr/bin/cowbuilder-dist to /usr/bin/pbuilder-dist, and the
    same with the manpage.
* debian/control:
  - Add cowdancer as alternative recommends to pbuilder.
* doc/pbuilder-dist.1:
  - Update it to explain the usage for the new pbuilder-dist script.
* doc/mk-sbuild-lv.1:
  - Fix an error (and get ride of a lintian warning).
2009-01-10 15:09:09 +01:00