Olmayan test suite çıkartıldı [ yerine konunca ekleriz ], birazdan autotools gelecek, böcek ezmekle uğraşıyorum actionsapi içinde

This commit is contained in:
S.Çağlar Onur
2005-06-21 13:14:36 +00:00
parent 62cac753b9
commit c9b76ce3cb
2 changed files with 19 additions and 18 deletions
+14 -11
View File
@@ -4,6 +4,8 @@
import os, string, re, shutil
from shell import *
from pisi.ui import ui
def gnuconfig_findnewest():
''' find the newest config.* file according to
timestamp and return it'''
@@ -22,18 +24,19 @@ def gnuconfig_findnewest():
for i in locations:
if not os.path.exists(i):
continue
newer_location[i] = re.sub('\'',
'',
string.split((cat(i) |
tr(str.rstrip) |
grep ('^timestamp') |
join), '=')[1])
newer_location[i] = re.sub('\'', '',
string.split((cat(i) | tr(str.rstrip)
| grep ('^timestamp')
| join), '=')[1])
keys = newer_location.keys()
keys.sort()
map(newer_location.get, keys)
return os.path.dirname(newer_location.popitem()[0])
thelist=[]
for i in keys:
thelist.append((i, newer_location[i]))
return os.path.dirname(thelist[0][0])
def gnuconfig_update():
''' copy newest config.* onto source's '''
@@ -45,8 +48,8 @@ def gnuconfig_update():
os.getcwd() + '/config.sub')
shutil.copyfile(newer_location + '/config.guess',
os.getcwd() + '/config.guess')
except IOError:
print 'Hata mata...'
except IOError, e:
ui.error ("Error : %s\n" % e)
sys.exit()
print 'GNU Config Update Finished...'
ui.info('GNU Config Update Finished...\n')
-2
View File
@@ -14,14 +14,12 @@ def run_all():
import archivetests
import installdbtests
import packagedbtests
import versiontests
alltests = unittest.TestSuite((
specfiletests.suite,
contexttests.suite,
fetchertests.suite,
archivetests.suite,
versiontests.suite,
installdbtests.suite,
packagedbtests. suite
))