On 12/31/2012 02:49 PM, Natanael Copa wrote:
> This allows specifying what repository to use for the container.
> 
> Signed-off-by: Natanael Copa <nc...@alpinelinux.org>

Looks good. Pushed.

Acked-by: Stéphane Graber <stgra...@ubuntu.com>

> ---
>  templates/lxc-alpine.in | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in
> index 7787e75..87886f5 100644
> --- a/templates/lxc-alpine.in
> +++ b/templates/lxc-alpine.in
> @@ -119,7 +119,10 @@ die() {
>  }
>  
>  usage() {
> -    echo "Usage: $(basename $0) [-h|--help] -p|--path <path> -n|--name 
> <name>" >&2
> +    cat >&2 <<EOF
> +Usage: $(basename $0) [-h|--help] [-r|--repository <url>]
> +                   -p|--path <path> -n|--name <name>
> +EOF
>  }
>  
>  usage_err() {
> @@ -153,6 +156,11 @@ while [ $# -gt 0 ]; do
>          path=$1
>          shift
>          ;;
> +    -r|--repository)
> +        optarg_check $opt "$1"
> +        repository=$1
> +        shift
> +     ;;
>      --)
>          break;;
>      --*=*)
> 


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to