[Frugalware-git] frugalware-current: t/s/syncpkgd * remove arm from hre is just floding the testsuite * re-add once is maintained

2015-11-17 Thread crazy
Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=a554230a6e18625849b60f3649f95d82f24ebd76

commit a554230a6e18625849b60f3649f95d82f24ebd76
Author: crazy 
Date:   Wed Nov 18 00:58:38 2015 +0100

t/s/syncpkgd
* remove arm from hre is just floding the testsuite
* re-add once is maintained

diff --git a/t/s/syncpkgd b/t/s/syncpkgd
index fcb2335..304a923 100755
--- a/t/s/syncpkgd
+++ b/t/s/syncpkgd
@@ -4,8 +4,7 @@ import argparse, os, stat, time, sys

fpms = {
'i686': [],
-   'x86_64': [],
-   'arm': []
+   'x86_64': []
}

def how_old(epoch):
___
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git


[Frugalware-git] frugalware-current: t/s/syncpkgd: typo

2013-10-30 Thread Miklos Vajna
Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=90f5352e620f363d71c30dfc72e0a30beaaa7353

commit 90f5352e620f363d71c30dfc72e0a30beaaa7353
Author: Miklos Vajna 
Date:   Wed Oct 30 12:05:08 2013 +0100

t/s/syncpkgd: typo

diff --git a/t/s/syncpkgd b/t/s/syncpkgd
index 2bada9e..fcb2335 100755
--- a/t/s/syncpkgd
+++ b/t/s/syncpkgd
@@ -79,7 +79,7 @@ args = parser.parse_args()

os.chdir("../..")

-for root, dirs, files in os.walk("source/network-extra/cgit"):
+for root, dirs, files in os.walk("source"):
for file in files:
if file == "FrugalBuild":
fb = os.path.join(root, file)
___
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git


[Frugalware-git] frugalware-current: t/s/syncpkgd: show maintainer as well

2013-10-29 Thread Miklos Vajna
Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=849f134cdf06f3d91fa990f4ad025fd5a069cd95

commit 849f134cdf06f3d91fa990f4ad025fd5a069cd95
Author: Miklos Vajna 
Date:   Tue Oct 29 11:48:34 2013 +0100

t/s/syncpkgd: show maintainer as well

DeX77 asked for this on IRC

diff --git a/t/s/syncpkgd b/t/s/syncpkgd
index 7d849da..2bada9e 100755
--- a/t/s/syncpkgd
+++ b/t/s/syncpkgd
@@ -59,20 +59,34 @@ def tobuild(pkg):
ret.append(full)
return ret

+def maintainer(fb):
+   sock = open(fb)
+   while True:
+   line = sock.readline()
+   if not line:
+   break
+   if line[:14] != "# Maintainer: ":
+   continue
+   # FIXME: we here hardcore the encoding of the FBs
+   m = line[14:].strip().decode('latin1')
+   break
+   sock.close()
+   return m
+
parser = argparse.ArgumentParser(prog='syncpkgd',
description='Utility to manage not yet synced packages')
args = parser.parse_args()

os.chdir("../..")

-for root, dirs, files in os.walk("source"):
+for root, dirs, files in os.walk("source/network-extra/cgit"):
for file in files:
if file == "FrugalBuild":
fb = os.path.join(root, file)
missing = tobuild(fb)
for i in missing:
old = os.stat(fb)[stat.ST_MTIME]
-   fpms[i.split('-')[-1]].append("%s is missing 
(FB is %s old)" % (i, how_old(old)))
+   fpms[i.split('-')[-1]].append("%s is missing 
(FB is %s old; %s)" % (i, how_old(old), maintainer(fb)))
archs = fpms.keys()
archs.sort()
sorted = []
___
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git


[Frugalware-git] frugalware-current: t/s/syncpkgd

2011-11-25 Thread Michel Hermier
Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=69d2ef97b335930e79d5efb36ae34d9af7dc81ed

commit 69d2ef97b335930e79d5efb36ae34d9af7dc81ed
Author: Michel Hermier 
Date:   Fri Nov 25 13:43:23 2011 +0100

t/s/syncpkgd

* Use argparse for command line arguments handling.

diff --git a/t/s/syncpkgd b/t/s/syncpkgd
index 5fc8edc..c2bd73e 100755
--- a/t/s/syncpkgd
+++ b/t/s/syncpkgd
@@ -1,6 +1,6 @@
#!/usr/bin/env python

-import os, stat, time, sys
+import argparse, os, stat, time, sys

fpms = {
'i686': [],
@@ -60,10 +60,9 @@ def tobuild(pkg):
ret.append(full)
return ret

-if len(sys.argv) > 1:
-   if sys.argv[1] == "--help":
-   print "not yet synced packages"
-   sys.exit(0)
+parser = argparse.ArgumentParser(prog='syncpkgd',
+   description='Utility to manage not yet synced packages')
+args = parser.parse_args()

os.chdir("../..")
___
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git


[Frugalware-git] frugalware-current: t/s/syncpkgd: add arm

2011-04-18 Thread Miklos Vajna
Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=2afc4b05c31b2a54d2b57e9b984ffec0b1845c35

commit 2afc4b05c31b2a54d2b57e9b984ffec0b1845c35
Author: Miklos Vajna 
Date:   Mon Apr 18 22:04:08 2011 +0200

t/s/syncpkgd: add arm

diff --git a/t/s/syncpkgd b/t/s/syncpkgd
index 0d258d4..5c2a677 100755
--- a/t/s/syncpkgd
+++ b/t/s/syncpkgd
@@ -6,6 +6,7 @@ fpms = {
'i686': [],
'x86_64': [],
'ppc': []
+   'arm': []
}

def how_old(epoch):
___
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git


[Frugalware-git] frugalware-current: t/s/syncpkgd: bash4 fix

2009-11-07 Thread Miklos Vajna
Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=82eb1aa5290d9a2d2f26a7a3a031cc6c90dcbab7

commit 82eb1aa5290d9a2d2f26a7a3a031cc6c90dcbab7
Author: Miklos Vajna 
Date:   Sat Nov 7 13:42:00 2009 +0100

t/s/syncpkgd: bash4 fix

diff --git a/t/s/syncpkgd b/t/s/syncpkgd
index 99302e1..0d258d4 100755
--- a/t/s/syncpkgd
+++ b/t/s/syncpkgd
@@ -38,7 +38,7 @@ def tobuild(pkg):
# Build the command to read the FrugalBuilds
command = 'cd %s; '
command += 'source /usr/lib/frugalware/fwmakepkg'
-   command += ' ; source FrugalBuild'
+   command += ' ; source ./FrugalBuild'
command += ' ; [ -n "${nobuild}" ] && exit'
command += ' ; echo ${optio...@]} | grep -q nobuild && exit'
command += ' ; echo "${pkgname}-${pkgver}-${pkgrel}"'
___
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git


[Frugalware-git] frugalware-current: t/s/syncpkgd: new stat

2007-08-07 Thread VMiklos
Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current/.git;a=commitdiff;h=7740f829164ff45d056c532cd5e6dca6231a77b9

commit 7740f829164ff45d056c532cd5e6dca6231a77b9
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Tue Aug 7 17:05:21 2007 +0200

t/s/syncpkgd: new stat

diff --git a/t/s/syncpkgd b/t/s/syncpkgd
new file mode 100755
index 000..fce3063
--- /dev/null
+++ b/t/s/syncpkgd
@@ -0,0 +1,84 @@
+#!/usr/bin/env python
+
+import os, stat, time, sys
+
+fpms = {
+   'i686': [],
+   'x86_64': []
+   }
+
+def how_old(epoch):
+   age = int(time.time()) - int(epoch)
+   if age > 60*60*24*365*2:
+   s = str(age/60/60/24/365)
+   s += " years"
+   elif age > 60*60*24*(365/12)*2:
+   s = str(age/60/60/24/(365/12))
+   s += " months"
+   elif age > 60*60*24*7*2:
+   s = str(age/60/60/24/7)
+   s += " weeks"
+   elif age > 60*60*24*2:
+   s = str(age/60/60/24)
+   s += " days"
+   elif age > 60*60*2:
+   s = str(age/60/60)
+   s += " hours"
+   elif age > 60*2:
+   s = str(age/60)
+   s += " minutes"
+   else:
+   s = str(age)
+   s += " seconds"
+   return s
+
+def tobuild(pkg):
+   ret = []
+   # Build the command to read the FrugalBuilds
+   command = 'cd %s; '
+   command += 'source /usr/lib/frugalware/fwmakepkg'
+   command += ' ; source FrugalBuild'
+   command += ' ; [ -n "${nobuild}" ] && exit'
+   command += ' ; echo [EMAIL PROTECTED] | grep -q nobuild && exit'
+   command += ' ; echo "${pkgname}-${pkgver}-${pkgrel}"'
+   command += ' ; echo "[EMAIL PROTECTED]"'
+   sock = os.popen(command % os.path.split(pkg)[0])
+   lines = sock.readlines()
+   sock.close()
+   if not len(lines):
+   return ret
+   archs = lines[1].strip().split()
+   for i in archs:
+   if i not in fpms.keys():
+   continue
+   full = "-".join([lines[0].strip(), i])
+   try:
+   os.stat("frugalware-%s/%s.fpm" % (i, full))
+   except OSError:
+   ret.append(full)
+   return ret
+
+if len(sys.argv) > 1:
+   if sys.argv[1] == "--help":
+   print "not yet synced packages"
+   sys.exit(0)
+
+os.chdir("../..")
+
+for root, dirs, files in os.walk("source"):
+   for file in files:
+   if file == "FrugalBuild":
+   fb = os.path.join(root, file)
+   missing = tobuild(fb)
+   for i in missing:
+   old = os.stat(fb)[stat.ST_MTIME]
+   fpms[i.split('-')[-1]].append("%s is missing 
(FB is %s old)" % (i, how_old(old)))
+archs = fpms.keys()
+archs.sort()
+sorted = []
+for i in archs:
+   v = fpms[i]
+   v.sort()
+   sorted.extend(v)
+for i in sorted:
+   print i
___
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git