Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Enables getabis to use local package copies (http://www.linux-archive.org/ubuntu-kernel-team/693800-enables-getabis-use-local-package-copies.html)

Stefan Bader 08-14-2012 08:30 AM

Enables getabis to use local package copies
 
This probably is something to let flow backwards. Though on
the other hand it is more likely to be an issue with a devel
tree not being uploaded to c-k-t.

-Stefan

Andy Whitcroft 08-14-2012 08:55 AM

Enables getabis to use local package copies
 
On Tue, Aug 14, 2012 at 10:30:07AM +0200, Stefan Bader wrote:
> This probably is something to let flow backwards. Though on
> the other hand it is more likely to be an issue with a devel
> tree not being uploaded to c-k-t.

Yeah I would say that this may as well just go into Quantal, before that
we build everything in the PPA anyhow.

I would mention that this is coming up because it is something we used
to be able to do with maint-startnewrelease which seems no longer works
because we have (sensibly) switched to "one getabis script to rule
them all".

> -Stefan
>
> From be6e8dd42326926e3f058577908718b2e2ba6ea6 Mon Sep 17 00:00:00 2001
> From: Stefan Bader <stefan.bader@canonical.com>
> Date: Tue, 14 Aug 2012 10:26:18 +0200
> Subject: [PATCH] UBUNTU: (config) Enable getabis to use local package copies
>
> If a package is not (yet) uploaded into the archive it will be
> possible to place a copy of the .deb into the home directory and
> it will get picked up.
>
> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
> ---
> debian/scripts/misc/getabis | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
> index c48199d..970c88f 100755
> --- a/debian/scripts/misc/getabis
> +++ b/debian/scripts/misc/getabis
> @@ -47,6 +47,12 @@ getall() {
> for prefix in $__package_prefixes
> do
> filename=${prefix}-${verabi}-${sub}_${verfull}_${arch}.deb
> +
> + # Take local copy if it is there...
> + if [ -f $HOME/$filename ]; then
> + cp $HOME/$filename .
> + fi
> +
> for r in "${repo_list[@]}"
> do
> if ! [ -f $filename ]; then
> --

This looks to do what I would expect. Picking up a local copy from
home and dropping it in in preference. I think the only thing I would
suggest is it should warn you it is doing it so if you have stuff lying
about in your home directory and it gets used you get fair warning of
your foolishness.

-apw

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team

Stefan Bader 08-14-2012 09:09 AM

Enables getabis to use local package copies
 
about like that?

-Stefan

Paolo Pisati 08-14-2012 12:17 PM

Enables getabis to use local package copies
 
On 08/14/2012 11:09 AM, Stefan Bader wrote:

Signed-off-by: Stefan Bader<stefan.bader@canonical.com>


works here:

http://paste.ubuntu.com/1146720/

--
bye,
p.

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team


All times are GMT. The time now is 10:43 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.