work, nothing will anyway :)
- this new class uses the tmp dir
* make the test cases that access pisi dirs, etc. derive
from the new testcase class
* a silly Option class in config module for those who want
to give options from API. We should have default values there, too (it seems!)
* several fixes in tests, remove old style config accesses etc.
make the globals in db modules None and leave the rest to python.
======================================================================
ERROR: testRemovePurge (installdbtests.InstallDBTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/baris/svn/uludag/trunk/pisi/tests/installdbtests.py", line 22, in setUp
pisi.api.init(database = True, comar = False)
File "/usr/lib/python2.3/site-packages/pisi/api.py", line 66, in init
ctx.filesdb = pisi.files.FilesDB()
File "/usr/lib/python2.3/site-packages/pisi/files.py", line 109, in __init__
shelve.LockedDBShelf.__init__(self, 'files')
File "/usr/lib/python2.3/site-packages/pisi/lockeddbshelve.py", line 43, in __init__
self.open(filename, dbname, filetype, flags, mode)
File "/usr/lib/python2.3/site-packages/pisi/lockeddbshelve.py", line 70, in open
self.lock()
File "/usr/lib/python2.3/site-packages/pisi/lockeddbshelve.py", line 78, in lock
raise Error(_("Another instance of PISI is running. Try later!"))
Error: PISI bir yerde daha çalışıyor. Yine deneyin!
without breaking anything (but please see the notes)
also rearrange the code a little, this is tested
with a single entry in zlib, so definitely needs
more extensive testing
* cleanup en_build_no codes, reorganize
* util: add is_package_name function
* util: no studlyCaps
so we must handle it carefully while creating nodes not to get errors like below:
System Error. Program Terminated.
exceptions.TypeError: node contents must be a string
Traceback:
File "/usr/bin/pisi", line 65, in ?
cli.run_command()
File "/usr/lib/python2.3/site-packages/pisi/cli/pisicli.py", line 107, in run_command
self.command.run()
File "/usr/lib/python2.3/site-packages/pisi/cli/commands.py", line 1029, in run
pisi.api.build_until(arg, "buildpackages", self.authInfo)
File "/usr/lib/python2.3/site-packages/pisi/api.py", line 327, in build_until
__buildState_buildpackages(pb, last)
File "/usr/lib/python2.3/site-packages/pisi/api.py", line 300, in __buildState_buildpackages
pb.build_packages()
File "/usr/lib/python2.3/site-packages/pisi/build.py", line 531, in build_packages
self.gen_files_xml(package)
File "/usr/lib/python2.3/site-packages/pisi/build.py", line 384, in gen_files_xml
files.write(files_xml_path)
File "/usr/lib/python2.3/site-packages/pisi/files.py", line 100, in write
document.appendChild(x.elt(self.dom))
File "/usr/lib/python2.3/site-packages/pisi/files.py", line 62, in elt
sizeElt.appendChild(dom.createTextNode(size))
File "/usr/lib/python2.3/xml/dom/minidom.py", line 1612, in createTextNode
raise TypeError, "node contents must be a string"
* start working on specfilenew again
* make test suite smarter. by definition of a test suite, they can be
run out of order.
* change the behavior of first running and then reporting all errors.
now we see where the error belongs to clearly. better in the cases
with several errors.