~ubuntu-branches/ubuntu/karmic/sbuild/karmic-proposed

« back to all changes in this revision

Viewing changes to bin/sbuild-hold

  • Committer: Bazaar Package Importer
  • Author(s): Roger Leigh, Roger Leigh
  • Date: 2009-05-17 15:52:53 UTC
  • mfrom: (8.1.7 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090517155253-fbxadfsyaf940ete
Tags: 0.58.3-1
[ Roger Leigh ]
* New release.
* debian/control:
  - Update to Standards Version 3.8.1.
  - Add buildd package.
  - Add libsbuild-perl package.
  - All packages depend upon libsbuild-perl.
* Add support for appending a tag to version numbers (Closes: #475777).
  Thanks to Timothy G Abbott for this patch.
* When using the --help or --version options, don't abort if not
  in the sbuild group (Closes: #523670).  Group membership is now
  only performed after options parsing, and only if required.
* Allow config files to use $HOME (Closes: #524564).  Thanks to
  James Vega for this patch.
* Restore buildd package.
* Split common library functions into new libsbuild-perl package.
* debian/sbuild.(preinst|postinst|postrm):
  - Remove special cases for versions older than oldstable.  Update
    addition and removal of sbuild group to use return value of getent
    rather than parsing getent output.
  - Use addgroup/delgroup in place of adduser/deluser.
  - Use --system when adding and deleting group, to ensure creation
    of a system group.  Migrate existing non-system group and group
    members if the system group is not present.
  - Handle removal of 50sbuild setup script.
* debian/buildd.(preinst|postinst|postrm): Add maintainer scripts for
  buildd package.  Move configuration file from /etc/buildd.conf to
  /etc/buildd/buildd.conf if present.  Also create buildd user and
  group for running the buildd daemon.
* Sbuild::Conf: Don't default MAINTAINER_NAME to $DEBEMAIL if unset
  in the configuration file (Closes: #520158).
* /etc/schroot/setup.d/50sbuild: Remove.  The setup tasks performed by
  this script are now handled internally by sbuild.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
use Getopt::Long;
26
26
use Sbuild qw(help_text version_text usage_error);
 
27
use Sbuild::Utility qw(setup cleanup shutdown);
27
28
use Sbuild::Conf;
28
 
use Sbuild::Utility qw(setup cleanup shutdown);
29
 
 
30
 
package main;
 
29
use Sbuild::OptionsBase;
31
30
 
32
31
my $conf = Sbuild::Conf->new();
33
 
 
34
 
GetOptions (
35
 
    "h|help" => sub { help_text("1", "sbuild-hold"); },
36
 
    "V|version" => sub {version_text("sbuild-hold"); })
37
 
or usage_error("sbuild-hold", "Error parsing command-line options");
 
32
exit 1 if !defined($conf);
 
33
my $options = Sbuild::OptionsBase->new($conf, "sbuild-hold", "1");
 
34
exit 1 if !defined($options);
 
35
$conf->check_group_membership();
38
36
 
39
37
usage_error("sbuild-hold", "Incorrect number of options") if (@ARGV < 2);
40
38