FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 07-18-2012, 12:35 AM
Stefan Bader
 
Default getabis enhancements

- Allow to define DEBIAN to be run standalone
- Limit the amount of time wget waits for connections
- Prevent exposing some errors when called by python script
- Print architecture of downloaded packages

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

diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
index b35639c..2e77f23 100755
--- a/debian/scripts/misc/getabis
+++ b/debian/scripts/misc/getabis
@@ -1,12 +1,14 @@
#!/bin/bash

-. debian/debian.env
-
if [ "$#" != "2" ]; then
echo "Usage: $0 <release> <revision>" 1>&2
exit 1
fi

+if [ "$DEBIAN" = "" ]; then
+ . debian/debian.env
+fi
+
ver=$1
revision=$2
abi=$(echo $revision | awk -F. '{print $1}')
@@ -14,7 +16,7 @@ abi=$(echo $revision | awk -F. '{print $1}')
verabi=$ver-$abi
verfull=$ver-$revision

-WGET="wget --quiet -c"
+WGET="wget --tries=1 --timeout=10 --quiet -c"

abidir="`pwd`/$DEBIAN/abi/$verfull"
tmpdir="`pwd`/abi-tmp-$verfull"
@@ -38,7 +40,7 @@ getall() {
echo "Exists: $sub"
continue
fi
- echo -n "Fetching $sub..."
+ echo -n "Fetching $sub($arch)..."
prefixes=""
filenames=""
cd $tmpdir
@@ -76,7 +78,8 @@ getall() {
$abidir/$arch/$sub.modules
(
cd tmp;
- ko=`find lib/modules/$verabi-$sub/kernel -name '*.ko' | head -1`
+ ko=$(find lib/modules/$verabi-$sub/kernel
+ -name '*.ko' | head -1)
readelf -p .comment "$ko" | awk '
($1 == "[") {
printf("%s", $3);
--
1.7.9.5


--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 07-18-2012, 12:35 AM
Stefan Bader
 
Default getabis enhancements

- Allow to define DEBIAN to be run standalone
- Limit the amount of time wget waits for connections
- Print architecture of downloaded packages

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

diff --git a/debian/scripts/misc/getabis b/debian/scripts/misc/getabis
index 2a1fc55..e89d042 100755
--- a/debian/scripts/misc/getabis
+++ b/debian/scripts/misc/getabis
@@ -1,12 +1,14 @@
#!/bin/bash

-. debian/debian.env
-
if [ "$#" != "2" ]; then
echo "Usage: $0 <release> <revision>" 1>&2
exit 1
fi

+if [ "$DEBIAN" = "" ]; then
+ . debian/debian.env
+fi
+
ver=$1
revision=$2
abi=$(echo $revision | awk -F. '{print $1}')
@@ -14,7 +16,7 @@ abi=$(echo $revision | awk -F. '{print $1}')
verabi=$ver-$abi
verfull=$ver-$revision

-WGET="wget --quiet -c"
+WGET="wget --tries=1 --timeout=10 --quiet -c"

abidir="`pwd`/$DEBIAN/abi/$verfull"
tmpdir="`pwd`/abi-tmp-$verfull"
@@ -33,7 +35,7 @@ getall() {
echo "Exists: $sub"
continue
fi
- echo -n "Fetching $sub..."
+ echo -n "Fetching $sub($arch)..."
filename=linux-image-${verabi}-${sub}_${verfull}_${arch}.deb
cd $tmpdir
for r in "${repo_list[@]}"
--
1.7.9.5


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

Thread Tools




All times are GMT. The time now is 06:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org