Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-09-30 | Deprecate custom foo.count() methods, support len() instead | Panu Matilainen | 2 | -10/+16 | |
2009-09-30 | Eliminate unused python ts iterator filter stuff | Panu Matilainen | 1 | -6/+1 | |
- iterators dont take arguments so there's no convenient way to filter while iterating, let python users filter themselves (like they've always been doing) | |||||
2009-09-30 | Take advantage of headerNextTag() in python hdr.keys() | Panu Matilainen | 1 | -29/+6 | |
- avoids whole lotta unnecessary copying of data, we're only interested in tag numbers here - dont filter out stuff - python consumers can look at i18n data too | |||||
2009-09-30 | Add iterator support to python header objects | Panu Matilainen | 1 | -3/+21 | |
2009-09-30 | Add alternative header iterator method | Panu Matilainen | 2 | -10/+26 | |
- we dont always want the actual contents of the tag to be copied on iteration, so add an interface that returns the next tag in the header - this lets callers to decide what to do with the tag and how to retrieve it | |||||
2009-09-30 | Add some flags to rpmtd creation | Panu Matilainen | 1 | -6/+16 | |
- permit disabling extension retrieval and "raw" (untranslated i18n) tags - always use HEADERGET_ALLOC for data availability sanity | |||||
2009-09-30 | Add beginnings of rpmtd wrappings to python | Panu Matilainen | 3 | -1/+128 | |
- unlike other types, store the C-level td structure directly in the python object, this lets us selectively expose some members directly, avoids having to deal with rpmtd allocation separately and as leaves the reference counting to python as rpmtd's aren't refcounted on C-level | |||||
2009-09-30 | Turn hdrGetHeader() into argument parsing converter interface | Panu Matilainen | 5 | -18/+25 | |
2009-09-30 | Sanitize getattr behavior of header objects | Panu Matilainen | 1 | -12/+20 | |
- when generic getattr fails, only try retrieving header tag as attribute if it's a valid tag - clear any python errors if generic getattr failed - split generating a python object from header + tag to an internal helper | |||||
2009-09-28 | Require expected type in PyArg_ParseTupleAndKeywords() already | Panu Matilainen | 1 | -24/+3 | |
2009-09-28 | Support numeric expansion in rpm.expandMacro() | Panu Matilainen | 1 | -5/+11 | |
2009-09-28 | Push rpm.signalsCaught() to python level | Panu Matilainen | 2 | -28/+13 | |
- only implement the bare minimum in C by adding a thin wrapper for rpmsqIsCaught(), the rest can easily be done in python | |||||
2009-09-28 | Implement rpm.readHeaderFromFD() in python instead of C | Panu Matilainen | 3 | -49/+16 | |
2009-09-28 | Implement rpm.readHeaderListFromFD() in python instead of C | Panu Matilainen | 4 | -57/+18 | |
2009-09-28 | Implement rpmreadHeaderListFromFile() in python instead of C | Panu Matilainen | 3 | -25/+7 | |
2009-09-28 | A few cases of Py_RETURN_NONE missed on the first round | Panu Matilainen | 1 | -8/+4 | |
2009-09-28 | Arrange rpm.headerLoad() compatibility on python level | Panu Matilainen | 3 | -8/+4 | |
2009-09-28 | OSGi dependency generator fixes from Alphonse Van Assche (ticket #101) | Panu Matilainen | 1 | -142/+173 | |
- This patch fix some minor bug, remove unused code and increase drastically the perf by threading execution of tasks and using zip command instead of jar to get meta-data | |||||
2009-09-24 | Enable subtyping on the rest of our type-objects | Panu Matilainen | 7 | -7/+8 | |
- not very useful atm as various places return hard-wired built-in types | |||||
2009-09-24 | Eliminate all custom tp_free() type methods | Panu Matilainen | 4 | -39/+4 | |
- tp_free()'s purpose is only to free up the memory used by the python object structure, cleaning up our own allocations belongs to tp_dealloc() | |||||
2009-09-24 | Enable subtyping on rpm.ts class | Panu Matilainen | 1 | -1/+1 | |
2009-09-24 | Call generic python setattr if not scriptFd | Panu Matilainen | 1 | -2/+2 | |
- yet more preliminaries for subtyping | |||||
2009-09-24 | tp_setattro() is supposed to return -1 on errors | Panu Matilainen | 1 | -1/+1 | |
2009-09-24 | Call (sub)type tp_free from destructors | Panu Matilainen | 7 | -23/+15 | |
- more preliminaries for subtyping - remove pointless NULL checks | |||||
2009-09-24 | Make object allocation type agnostic | Panu Matilainen | 16 | -43/+43 | |
- pass (sub)type down to wrappers - call subtype tp_alloc() instead of PyObject_New() - preliminaries for allowing subtyping | |||||
2009-09-23 | Remove unnecessary header type checking | Panu Matilainen | 1 | -7/+0 | |
- the type is already validated by PyArg_ParseTupleAndKeywords(), no need to doublecheck | |||||
2009-09-23 | Remove the broken tp_print method from spec | Panu Matilainen | 1 | -7/+1 | |
2009-09-23 | Decouple python spec objects from transaction objects | Panu Matilainen | 4 | -29/+44 | |
- ts structure is only necessary for hysterically passing back the parse result from parseSpec(), hide this in the bindings - deprecate ts.parseSpec() for later ripping | |||||
2009-09-23 | Oops, binary data can and should be presented as python strings | Panu Matilainen | 1 | -9/+1 | |
2009-09-23 | Add rpmtd to python object converter, change header code to use that | Panu Matilainen | 4 | -107/+74 | |
- vastly simpler than the former goo in hdr_subscribe | |||||
2009-09-23 | Turn tagNumFromPyObject() into an object converter interface | Panu Matilainen | 7 | -46/+23 | |
- permits direct validation and conversion from arg parsing | |||||
2009-09-23 | Turn rpmFdFromPyObject() into an object converter interface | Panu Matilainen | 4 | -16/+14 | |
- permits direct validation and conversion from arg parsing | |||||
2009-09-23 | Permit any file object in rpm.readHeaderListFromFD() | Panu Matilainen | 1 | -3/+3 | |
2009-09-23 | Permit file objects in python header constructor | Panu Matilainen | 1 | -1/+7 | |
2009-09-23 | Add write() method to python headers | Panu Matilainen | 1 | -1/+27 | |
2009-09-23 | Accept any file object in ts.hdrFromFdno() | Panu Matilainen | 1 | -4/+4 | |
2009-09-23 | Add helper to convert python file objects to rpmio FD_t type | Panu Matilainen | 3 | -0/+31 | |
2009-09-23 | Add te.NEVRA() method, adjust docs | Panu Matilainen | 1 | -1/+10 | |
2009-09-23 | Remove tp_print methods from all rpm-python objects | Panu Matilainen | 4 | -51/+4 | |
- these violate the intended use of tp_print, python docs state "A type should never implement tp_print in a way that produces different output than tp_repr or tp_str would." | |||||
2009-09-23 | Lose the debug junk from python bindings | Panu Matilainen | 5 | -176/+0 | |
2009-09-23 | Add hdr.format(), deprecate hdr.sprintf() | Panu Matilainen | 1 | -1/+9 | |
- sprintf() is a C'ism and format() is closer to current librpm anyway | |||||
2009-09-23 | Make fiFromHeader() static inside header-py, deprecate | Panu Matilainen | 3 | -7/+7 | |
2009-09-23 | Deprecate rpm.headerLoad() | Panu Matilainen | 1 | -22/+4 | |
- this is not needed now, just call rpm.hdr(<blob) to load | |||||
2009-09-23 | Deprecate header filelist munging methods | Panu Matilainen | 1 | -0/+8 | |
- hdr.convert() is the generic way, the old stuff is not needed anymore - macro to issue warnings just once | |||||
2009-09-23 | Eliminate unnecessary function | Panu Matilainen | 1 | -6/+2 | |
2009-09-23 | Permit headerConvert() from python | Panu Matilainen | 2 | -0/+17 | |
2009-09-23 | Add has_key() method to header object | Panu Matilainen | 1 | -0/+11 | |
2009-09-23 | Add support for creating new header objects | Panu Matilainen | 1 | -1/+30 | |
- without arguments, rpm.hdr() creates an empty header - with another header as argument, make a copy - string argument is considered an unloaded header blob and copy-loaded | |||||
2009-09-23 | Rpm's allocators dont return on OOM, remove unnecessary check | Panu Matilainen | 1 | -5/+1 | |
2009-09-23 | Add type checking macros for all rpm python type objects | Panu Matilainen | 8 | -0/+16 | |