Hi,

James Vega <[email protected]> writes:
> That sounds like a good idea.  Just committed the implementation.

aha, great!

You seemed to also remove "-w" from perl, was that a mistake? At least I
don't get any warnings if I put it back.

>> Or should "-aall" always be implicit?
>
> I'd prefer being explicit.

Ok. I noticed you updated the man page. Since debsnap can now support so
many different options I converted the examples that were mentioned in
bug #587523 to a proper EXAMPLES section. Can you check the attached
patch?

>From c7edde7155e2a78ce55bef953394bd921f30be73 Mon Sep 17 00:00:00 2001
From: Timo Juhani Lindfors <[email protected]>
Date: Fri, 3 Jun 2011 13:22:01 +0300
Subject: [PATCH] debsnap: add EXAMPLES section to man page.

---
 scripts/debsnap.1 |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/scripts/debsnap.1 b/scripts/debsnap.1
index 336003e..22f632e 100644
--- a/scripts/debsnap.1
+++ b/scripts/debsnap.1
@@ -90,6 +90,23 @@ but operations otherwise succeeded as expected.  In some cases packages may
 fail to be downloaded because they are no longer available on the snapshot
 mirror, so any caller should expect this may occur in normal use.
 
+.SH EXAMPLES
+.TP
+.BR "debsnap -a amd64 xterm 256-1"
+Download the binary package of specific a xterm version for amd64 architecture.
+.TP
+.BR "debsnap -a armel xterm"
+Download binary packages for all versions of xterm for armel architecture.
+.TP
+.BR "debsnap --binary xterm 256-1"
+Download binary packages for a specific a xterm version but for all architectures.
+.TP
+.BR "debsnap --binary xterm"
+Download binary packages for all version of xterm version for all architectures.
+.TP
+.BR "aptitude search '~i' -F '%p %V' | while read pkg ver; do debsnap -a $(dpkg-architecture -qDEB_HOST_ARCH) -a all $pkg $ver; done" 
+Download binary packages of all packages that are installed on the system.
+
 .SH FILES
 .TP
 .I /etc/devscripts.conf
-- 
1.7.2.5

> This did make me think of another idea, though.  There's currently no
> easy way to say “download all binary packages for this source package”.
> It seems that would be a useful bit to add.  I think modeling it after
> the BTS might make sense:
>
>     debsnap -b src:libdb-ruby
>
> Although, it could be confusing if src: only changes behavior when -b is
> used.

Syntax sounds ok to me.

-Timo


Reply via email to