diff mbox

[Quantal,v2] Enables getabis to use local package copies

Message ID 1344935368-5396-1-git-send-email-stefan.bader@canonical.com
State New
Headers show

Commit Message

Stefan Bader Aug. 14, 2012, 9:09 a.m. UTC
about like that?

-Stefan


From c928e0a81a9be0d3f1fd8ab2f7eee2227ad6954a 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.
This was one option of the external getabis script and surprisingly
was actually used.

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
---
 debian/scripts/misc/getabis |    7 +++++++
 1 file changed, 7 insertions(+)

Comments

Paolo Pisati Aug. 14, 2012, 12:17 p.m. UTC | #1
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/
Leann Ogasawara Aug. 14, 2012, 2:47 p.m. UTC | #2
Applied to Quantal master-next.

Thanks,
Leann

On 08/14/2012 02:09 AM, Stefan Bader wrote:
> about like that?
>
> -Stefan
>
>
> From c928e0a81a9be0d3f1fd8ab2f7eee2227ad6954a 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.
> This was one option of the external getabis script and surprisingly
> was actually used.
>
> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
> ---
>  debian/scripts/misc/getabis |    7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
> index c48199d..82f67a0 100755
> --- a/debian/scripts/misc/getabis
> +++ b/debian/scripts/misc/getabis
> @@ -47,6 +47,13 @@ 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
> +				echo -n "Locally!..."
> +				cp $HOME/$filename .
> +			fi
> +
>  			for r in "${repo_list[@]}"
>  			do
>  				if ! [ -f $filename ]; then
diff mbox

Patch

diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
index c48199d..82f67a0 100755
--- a/debian/scripts/misc/getabis
+++ b/debian/scripts/misc/getabis
@@ -47,6 +47,13 @@  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
+				echo -n "Locally!..."
+				cp $HOME/$filename .
+			fi
+
 			for r in "${repo_list[@]}"
 			do
 				if ! [ -f $filename ]; then