On Thursday 17 September 2009 21:43:19 Andres Mejia wrote:
> Here's another patch to ensure symlinks are not installed when creating
>  file type chroots with sbuild-createchroot. Again, this should be applied
>  after all other patches are applied.
> 
> I can also supply all patches again in the order they should be applied if
> it's desired.
> 

And here's yet another patch that restores the default behavior for
'sbuild-update' to perform an 'apt-get update' when run as 'sbuild-update 
CHROOT1 CHROOT2 ...'.

-- 
Regards,
Andres
From 633a0a8392ca818c9065099d090fe58bd970d24d Mon Sep 17 00:00:00 2001
From: Andres Mejia <[email protected]>
Date: Thu, 17 Sep 2009 22:19:49 -0400
Subject: [PATCH] Have sbuild-update perform apt-get command 'update' by default.
 This will also display a message indicating that this may change.

---
 bin/sbuild-update |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/bin/sbuild-update b/bin/sbuild-update
index 2bac7e5..33dae2a 100755
--- a/bin/sbuild-update
+++ b/bin/sbuild-update
@@ -107,9 +107,10 @@ $conf->check_group_membership();
 
 if ( ! $conf->get('UPDATE') && ! $conf->get('UPGRADE') &&
     ! $conf->get('DISTUPGRADE') ) {
-    my $msg = "Must specify at least one of the options --update, --upgrade, ";
-    $msg .= "or --dist-upgrade.\n";
-    die "$msg";
+    my $msg = "$0 will perform apt-get command 'update' now, however this ";
+    $msg .= "may change at a later revision.\n";
+    print "$msg";
+    $conf->set('UPDATE', 1);
 }
 
 usage_error("sbuild-update", "Incorrect number of options") if (@ARGV < 1);
-- 
1.6.4.3

Reply via email to