summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSebastian Schmelzer2011-05-11 12:24:47 +0200
committerSebastian Schmelzer2011-05-11 12:24:47 +0200
commit065e45bff6ac791350ffc0a434ae4c0452585959 (patch)
tree9812b1c8a3631f03e5237dea3865bb50b47f3de0 /tools
parentFormal steps to incorporate new distro versions ... (see wiki) (diff)
downloadcore-065e45bff6ac791350ffc0a434ae4c0452585959.tar.gz
core-065e45bff6ac791350ffc0a434ae4c0452585959.tar.xz
core-065e45bff6ac791350ffc0a434ae4c0452585959.zip
update installer FIX #765
update suse distroinfo helper script update suse distroinfo FIX #733
Diffstat (limited to 'tools')
-rwxr-xr-xtools/installer7
-rwxr-xr-xtools/updateDistroInfo.suse77
2 files changed, 50 insertions, 34 deletions
diff --git a/tools/installer b/tools/installer
index 6010b1e2..f974c82c 100755
--- a/tools/installer
+++ b/tools/installer
@@ -5,7 +5,12 @@
# determin distribution
-DISTRO=$(lsb_release -i| sed 's/^[^:]*:\t//' | tr '[:upper:]' '[:lower:]')
+if [ ! -z $(which lsb_release) ]; then
+ DISTRO=$(lsb_release -i| sed 's/^[^:]*:\t//' | tr '[:upper:]' '[:lower:]')
+else
+ # Can't determin distro version..
+ DISTRO=""
+fi
# get/set default paths
[ -z $USR_BIN_PATH ] && USR_BIN_PATH=/usr/bin
diff --git a/tools/updateDistroInfo.suse b/tools/updateDistroInfo.suse
index b877ab55..ddc8a0b8 100755
--- a/tools/updateDistroInfo.suse
+++ b/tools/updateDistroInfo.suse
@@ -27,36 +27,36 @@ use Net::FTP;
# Configuration ###############################################################
my @supportedVersions = (
- {
- ver =>
- '10.3',
- source =>
- 'http://mirrors.opensuse.org/list/all.html',
- supporedArch =>
- 'i586 x86_64',
- packageKeysLocation =>
- 'http://download.opensuse.org/distribution/10.3/repo/oss/'
- },
- {
- ver =>
- '11.0',
- source =>
- 'http://mirrors.opensuse.org/list/11.0.html',
- supporedArch =>
- 'i586 x86_64',
- packageKeysLocation =>
- 'http://download.opensuse.org/distribution/11.0/repo/oss/'
- },
- {
- ver =>
- '11.1',
- source =>
- 'http://mirrors.opensuse.org/list/11.1.html',
- supporedArch =>
- 'i586 x86_64',
- packageKeysLocation =>
- 'http://download.opensuse.org/distribution/11.1/repo/oss/'
- }
+# {
+# ver =>
+# '10.3',
+# source =>
+# 'http://mirrors.opensuse.org/list/all.html',
+# supporedArch =>
+# 'i586 x86_64',
+# packageKeysLocation =>
+# 'http://download.opensuse.org/distribution/10.3/repo/oss/'
+# },
+# {
+# ver =>
+# '11.0',
+# source =>
+# 'http://mirrors.opensuse.org/list/11.0.html',
+# supporedArch =>
+# 'i586 x86_64',
+# packageKeysLocation =>
+# 'http://download.opensuse.org/distribution/11.0/repo/oss/'
+# },
+# {
+# ver =>
+# '11.1',
+# source =>
+# 'http://mirrors.opensuse.org/list/11.1.html',
+# supporedArch =>
+# 'i586 x86_64',
+# packageKeysLocation =>
+# 'http://download.opensuse.org/distribution/11.1/repo/oss/'
+# },
{
ver =>
'11.2',
@@ -66,7 +66,7 @@ my @supportedVersions = (
'i586 x86_64',
packageKeysLocation =>
'http://download.opensuse.org/distribution/11.2/repo/oss/'
- }
+ },
{
ver =>
'11.3',
@@ -76,7 +76,18 @@ my @supportedVersions = (
'i586 x86_64',
packageKeysLocation =>
'http://download.opensuse.org/distribution/11.3/repo/oss/'
+ },
+ {
+ ver =>
+ '11.4',
+ source =>
+ 'http://mirrors.opensuse.org/list/11.4.html',
+ supporedArch =>
+ 'i586 x86_64',
+ packageKeysLocation =>
+ 'http://download.opensuse.org/distribution/11.4/repo/oss/'
}
+
);
my %sourceLists = (
@@ -273,13 +284,13 @@ while (my $version = shift(@supportedVersions)) {
$running = cleanupThreads();
printf ("\n-- waiting for %i unfinished check(s) ..\n", $running);
- my $counter = 120;
+ my $counter = 30;
my $exit = 0;
while( $exit == 0 ) {
sleep 0.5;
$running = cleanupThreads();
$counter--;
- if ( $counter < 1 && $running > 0 ) {
+ if ( $counter < 1 ) {
printf ("\n-- %i check(s) still running.. \n", $running);
print ("\n-- cleanup remaining check(s)..");
my @runningthreads = threads->list();