diff options
author | tnut <thierryn1 at hispeed dot ch> | 2011-02-06 14:24:08 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2011-02-06 14:24:08 +0100 |
commit | b36b1fb0d0e0106b40879d54f85616e6217bcc50 (patch) | |
tree | a35e8f3468e88ed295c665ee51a23cbfed5bd4ff /base/pkg-get-awk/pkg-get.awk | |
parent | 8e93feb91409db77f8179718f1cf054a157de220 (diff) | |
download | nutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.tar.gz nutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.tar.bz2 nutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.tar.xz nutyx-pakxe-b36b1fb0d0e0106b40879d54f85616e6217bcc50.zip |
pkg-get-awk, correction de quelques bugs
Diffstat (limited to 'base/pkg-get-awk/pkg-get.awk')
-rwxr-xr-x | base/pkg-get-awk/pkg-get.awk | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/base/pkg-get-awk/pkg-get.awk b/base/pkg-get-awk/pkg-get.awk index 801b736a8..5478a7a0e 100755 --- a/base/pkg-get-awk/pkg-get.awk +++ b/base/pkg-get-awk/pkg-get.awk @@ -23,7 +23,7 @@ function configs( a, i, k, n, old_FS) PRE = "n" POST = "n" PKGDIR[0] = "/srv/NuTyX/release/" - WEBDIR[0] = "http://nutyx.meticul.eu/attapu/i686/release/" + WEBDIR[0] = "http://nutyx.meticul.eu/pakxe/x86_64/release/" # arguments OPER=(ARGC>1) ? ARGV[1] : "" @@ -158,7 +158,7 @@ function depends2(Pkg, Fl, a, i, n, c) c= (tb_DB[a[i]]==tb_REPO[a[i]]) ? "i" : "u" else c=" " - printf("[%c] %s%s\n", c, S, a[i]) + printf(" [%c] %s%s\n", c, S, a[i]) } } S = (Fl=="--d") ? substr(S,4) : "" @@ -187,9 +187,10 @@ function depinst2(Pkg, a, i, n) if (a[i] in tb_DEPS) depinst2(a[i]) if (!(a[i] in tb_DB)) - install2(a[i], "inst") + install2(a[i], "") } } + install2(Pkg, "") } @@ -221,7 +222,7 @@ function download(pak, a, cmd, j, pakw, rep, WEBREPO) if (rep=="y") { pakw = pak sub("#", "%23", pakw) - cmd="wget -O "tb_PKGDIR[a[1]] pak " " WEBREPO pakw + cmd="wget --no-directories --tries=3 --waitretry=3 "tb_PKGDIR[a[1]] pak " " WEBREPO pakw if ("--dry" in tb_OPT) { print "\033[1;34m" cmd "\033[1;0m" } else { @@ -334,8 +335,10 @@ function install( i) function install2(Pkg, Oper, cmd, i, pak) { - pak=Pkg"#"tb_REPO[Pkg] ".pkg.tar.xz" - download(pak) + if (tb_REPO[Pkg] != "" ){ + pak=Pkg"#"tb_REPO[Pkg] ".pkg.tar.xz" + download(pak) + } if ("-do" in tb_OPT) return @@ -654,7 +657,7 @@ function sync( cmd, i, j, pak) for (j=0; j<NPKGDIR; j++) { if (WEBDIR[j] > "") { for (i=1; i<=4; i++) { - cmd="wget -O "PKGDIR[j] pak[i] " " WEBDIR[j] pak[i] + cmd="wget -q -O "PKGDIR[j] pak[i] " " WEBDIR[j] pak[i] if ("--dry" in tb_OPT) { print "\033[1;34m" cmd "\033[1;0m" } else { |