5570 Commits

Author SHA1 Message Date
Eray Özkural 72a4d291eb * fix: the pending flag is set also when comar is ignored (which might be taken to imply that postinstall is postponed, but we don't have implications in Options right now...) 2005-10-27 00:28:22 +00:00
Eray Özkural d09ab66e8e * use the poor gnu hello-1.3 instead of the chunky popt 2005-10-27 00:22:22 +00:00
Eray Özkural 327675135e * try to fix helloworld package, unsuccessfully 2005-10-27 00:19:42 +00:00
Eray Özkural 9962e1057f * fix a few other tests... wohooo 2005-10-27 00:03:56 +00:00
Barış Metin 409e810e36 fix. 2005-10-26 23:49:31 +00:00
Eray Özkural 43cc7b2034 * import 2005-10-26 23:45:48 +00:00
Eray Özkural e998b3f00a * sourcedb: fix init/finalize 2005-10-26 23:34:01 +00:00
Eray Özkural f109b4bd1e * use a testcase class for proper API init/shutdown, if that doesn't
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.
2005-10-26 23:28:14 +00:00
Eray Özkural 081a980268 * autoxml: smart setting of default path for list types!
* fix several errors in specfilenew! too many to list here!
* we're really in business now :)
2005-10-26 22:34:02 +00:00
Barış Metin cb6d7fef3e fix archive tests 2005-10-26 22:05:16 +00:00
Barış Metin 1ae72b27e9 fix test data 2005-10-26 22:04:17 +00:00
İsmail Dönmez c4ecbe0869 fix 2005-10-26 22:00:17 +00:00
İsmail Dönmez a955e212ce remove_prefix hem fonksiyon ismi hem de değişken ismi olarak kullanılmış.
Lisp kullansak böyle olur muydu ACABA?
2005-10-26 21:46:34 +00:00
Eray Özkural ad2a2f3188 * typo 2005-10-26 21:38:57 +00:00
Eray Özkural 66fb732159 * move the jokes to misc. suggestions for those who are still reading
:)
2005-10-26 21:35:58 +00:00
Barış Metin 999e14ceea fix installdb and packagedb tests 2005-10-26 21:35:30 +00:00
Barış Metin d0d5578cec it was not possible to finalize and than initialize later after importing the db modules.
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!
2005-10-26 21:35:05 +00:00
Eray Özkural 4f68eff8ca * express the concern about parenthetical expressions in more polite
language
* additional recommendations and a link to PEP 8
* would still need reorg... most of those aren't guidelines, just suggestions.
2005-10-26 21:29:58 +00:00
Barış Metin 4678b3c4b7 "By definition, a unit test is an independent unit of testing"
exa
2005-10-26 21:09:48 +00:00
S.Çağlar Onur 0032d0a4e1 CODING continues... 2005-10-26 20:52:31 +00:00
Barış Metin 6d6eb5adf8 fix test data and make metadatatests pass 2005-10-26 20:45:02 +00:00
Eray Özkural 51d3bc9c55 * add missing TR translations, prepare for release!
* update autoxml doc
2005-10-26 20:39:35 +00:00
Barış Metin aefd42348d add some notes on unit tests. 2005-10-26 20:35:34 +00:00
Eray Özkural 0da7c4c3e0 * revert the list spec to the old flexible way, specfile requires that
:(
2005-10-26 19:05:03 +00:00
Eray Özkural 51d35343e6 add test 2005-10-26 18:48:46 +00:00
Eray Özkural e2c4fd422b * add a hook for check() function
* remove the stupid code that tried to add XmlFile as a base class
2005-10-26 18:39:33 +00:00
Eray Özkural 07b2c79f5e * Release -> release, we're case sensitive
* source is not a list
* some more working no XmlFile support in autoxml, looking for a way :(
2005-10-26 18:32:58 +00:00
Eray Özkural 42719e7329 * autoxml: add a "where" identifier for errror checking in decode and
check methods, for now. (maybe we can find a better soln)
2005-10-26 16:27:12 +00:00
Eray Özkural 4c1a99b6ae * add the metaclass test from new style classes paper 2005-10-26 15:56:50 +00:00
Eray Özkural d97f4e3773 * we're in business, use XmlFile as a baseclass
now in a somewhat kludgey way, for testing purposes
  (the automatic addition of XmlFile as a base class
   doesn't work yet)
2005-10-26 15:55:56 +00:00
İsmail Dönmez 040a1aa28a Fix one str & one int
<< Mom! PiSi is being a dildo! >>
2005-10-26 15:48:49 +00:00
Eray Özkural 2681758304 * minor 2005-10-26 15:21:54 +00:00
İsmail Dönmez e153767660 çalış 2005-10-26 14:58:53 +00:00
Eray Özkural e9052bc8f9 * fix: use build number in output filename
* package_prefix -> package_suffix :)
* small comments
2005-10-26 14:41:52 +00:00
Eray Özkural 105b4aaf58 * add wildcard support to paths in files section
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
2005-10-26 13:58:45 +00:00
Eray Özkural 135ee9668a * update po 2005-10-26 12:10:59 +00:00
Eray Özkural 69e06c386b * fix: there is a canonical way optional tags are created 2005-10-26 11:37:31 +00:00
Barış Metin 706d18d1d7 size in files is made optional (with commit 3922)
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"
2005-10-26 11:21:04 +00:00
S.Çağlar Onur b74462a322 indentation fix 2005-10-26 10:56:55 +00:00
Eray Özkural 5427796268 * uhuhuh 2005-10-25 16:06:30 +00:00
Eray Özkural 3893da83bb * update popt's pspec 2005-10-25 15:47:08 +00:00
Eray Özkural 934556dde8 * improve specfilenew a little 2005-10-25 15:40:22 +00:00
Eray Özkural 8a4a47ac00 * distinguish String and Text types for autoxml
* 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.
2005-10-25 15:23:47 +00:00
Eray Özkural d0a2d7a285 * test autoxml.check 2005-10-25 14:20:52 +00:00
Eray Özkural 9eefc6aa66 * add a check method to autoxml classes 2005-10-25 14:20:32 +00:00
Eray Özkural 8f91cadcf5 * fix: no exec flag 2005-10-25 12:47:06 +00:00
Eray Özkural b86dd87a49 * grant database read access to world by default 2005-10-25 12:45:45 +00:00
Eray Özkural d04b07f448 * fix: handle pending db 2005-10-25 11:55:35 +00:00
S.Çağlar Onur ba62b66e02 typo 2005-10-25 11:50:18 +00:00
Eray Özkural 2ac8bc88b2 * fix: clear pending state properly in database (thanks to caglar for showing me this, i've forgotten it) 2005-10-25 11:41:09 +00:00