summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguy_ <guy@NuTyX.(none)>2011-06-15 21:19:34 +0200
committerguy_ <guy@NuTyX.(none)>2011-06-15 21:19:34 +0200
commitbf25ce343de013ba64f0f5cb2f7f9f3ac4a68a4b (patch)
treebfb0132a441455e9277d22f5c1275af4db3cf1cd
parenta456206f69cd989b1ccbba465edb0ec4a9e77a60 (diff)
downloadnutyx-pakxe-bf25ce343de013ba64f0f5cb2f7f9f3ac4a68a4b.tar.gz
nutyx-pakxe-bf25ce343de013ba64f0f5cb2f7f9f3ac4a68a4b.tar.bz2
nutyx-pakxe-bf25ce343de013ba64f0f5cb2f7f9f3ac4a68a4b.tar.xz
nutyx-pakxe-bf25ce343de013ba64f0f5cb2f7f9f3ac4a68a4b.zip
pkg-get 0.3.5, maj bugs
-rw-r--r--base/pkg-get/.md5sum.i6862
-rw-r--r--base/pkg-get/.md5sum.x86_642
-rw-r--r--base/pkg-get/Pkgfile2
-rwxr-xr-xbase/pkg-get/pkg-get.awk23
4 files changed, 17 insertions, 12 deletions
diff --git a/base/pkg-get/.md5sum.i686 b/base/pkg-get/.md5sum.i686
index 91b3273f0..324ed3206 100644
--- a/base/pkg-get/.md5sum.i686
+++ b/base/pkg-get/.md5sum.i686
@@ -1,4 +1,4 @@
262a8418347b2718f546e6882906c0c8 pkg-get-awk.conf
-343d94379f58c8cab988131b213cdd02 pkg-get.awk
+c594d6ef62e81a176398d1c0cfd41e5d pkg-get.awk
bf4713f8f6976dd4d2d860fe6b4b03d0 pkg-get.po
4d89f89107b269e1579a7e4a440eddb1 syn
diff --git a/base/pkg-get/.md5sum.x86_64 b/base/pkg-get/.md5sum.x86_64
index 91b3273f0..324ed3206 100644
--- a/base/pkg-get/.md5sum.x86_64
+++ b/base/pkg-get/.md5sum.x86_64
@@ -1,4 +1,4 @@
262a8418347b2718f546e6882906c0c8 pkg-get-awk.conf
-343d94379f58c8cab988131b213cdd02 pkg-get.awk
+c594d6ef62e81a176398d1c0cfd41e5d pkg-get.awk
bf4713f8f6976dd4d2d860fe6b4b03d0 pkg-get.po
4d89f89107b269e1579a7e4a440eddb1 syn
diff --git a/base/pkg-get/Pkgfile b/base/pkg-get/Pkgfile
index 249f9a26c..7056a1692 100644
--- a/base/pkg-get/Pkgfile
+++ b/base/pkg-get/Pkgfile
@@ -4,7 +4,7 @@
# Packager: guy_
name=pkg-get
-version=0.3.4
+version=0.3.5
release=1
source=(syn pkg-get.awk pkg-get-awk.conf pkg-get.po)
diff --git a/base/pkg-get/pkg-get.awk b/base/pkg-get/pkg-get.awk
index fd36a6aa2..bc0a1cec8 100755
--- a/base/pkg-get/pkg-get.awk
+++ b/base/pkg-get/pkg-get.awk
@@ -13,8 +13,8 @@ function configs( a, i, k, n, old_FS)
{
n=split(ENVIRON["_"],a,"/")
NPKG = a[n]
- VERSION = "0.3.4"
- DATE = "2011-06-05"
+ VERSION = "0.3.5"
+ DATE = "2011-06-15"
# defauts
CONF = "/etc/pkg-get.conf"
@@ -256,15 +256,17 @@ function download(pak, a, WEBREPO, fnPak, cmd, rc, pakw)
}
-function dsearch( old_FS, j, FILE)
+function dsearch( old_FS, j, FILE, trt)
{
old_FS = FS
FS="[:#]"
for (j=0; j<NPKGDIR; j++) {
FILE=PKGDIR[j] REPO
while ((getline < FILE) >0) {
- if (index($1,ARGV[2]) || index($5,ARGV[2]))
+ if ( !($1 in trt) && (index($1,ARGV[2]) || index($5,ARGV[2]))) {
print $1
+ trt[$1]="y"
+ }
}
}
close(FILE)
@@ -444,16 +446,16 @@ function isinst()
}
-function list( old_FS, FILE, j, prev)
+function list( old_FS, FILE, j, trt)
{
old_FS = FS
FS="#"
for (j=0; j<NPKGDIR; j++) {
FILE = PKGDIR[j] REPO
while ((getline < FILE) >0) {
- if ($1 != prev) {
+ if (!($1 in trt)) {
print $1
- prev = $1
+ trt[$1]="y"
}
}
close(FILE)
@@ -700,15 +702,17 @@ function readme( fl, j, FILE)
}
-function search( j, FILE, old_FS)
+function search( j, FILE, old_FS, trt)
{
old_FS = FS
FS="[:#]"
for (j=0; j<NPKGDIR; j++) {
FILE=PKGDIR[j] REPO
while ((getline < FILE) >0) {
- if (index($1,ARGV[2]))
+ if (!($1 in trt) && index($1,ARGV[2])) {
print $1
+ trt[$1]="y"
+ }
}
close(FILE)
}
@@ -727,6 +731,7 @@ function sync( cmd, i, j, pak, rc)
for (j=0; j<NPKGDIR; j++) {
if (WEBDIR[j] > "") {
for (i=1; i<=4; i++) {
+ print PKGDIR[j] pak[i]
cmd="wget -q --connect-timeout=" TIMEOUT " -O "PKGDIR[j] pak[i] " " WEBDIR[j] pak[i]
if ("--dry" in tb_OPT) {
print "\033[1;34m" cmd "\033[1;0m"