Age | Commit message (Collapse) | Author | Files | Lines |
|
- at least this lets sub-typers override the hysterical return values
|
|
- for now, only expose the basic attributes and return problem string
representation on %s
- return problem objects on rpmps iteration
|
|
- should've been in commit 8169bbde6934637ed7be58e18103330c1d5e4546
|
|
- minimize the stuff done in C: rpmtsAddEraseElement() only cares about
header, so that's what we accept on C-level bindings
- on python side, handle db recno's and labels like we've always done,
additionally accept match iterators and plain headers too
|
|
- trying to remove non-installed header counts as an error
|
|
- largely removes the need for the klunky ts.hdrFromFdno()
|
|
- minimize the stuff done in C: require all arguments in final format
and report status back with a boolean, handle everything else including
keylist refcounting hack over to python side
|
|
|
|
- trivially implemented in python by iterating over transaction element
keys, we dont need no stinking extra librpm APIs for this
|
|
|
|
|
|
- installers and the like dont need the pile of poo called librpmbuild for
anything, avoid dragging it in needlessly
- import _rpmb into rpm namespace if available but dont complain if
its not there
- arrange ts.parseSpec() compatibility on python side by dynamically
importing _rpmb if possible
|
|
|
|
- move the rpm.ts() vs rpm.TransactionSet() compatibility to python
- this will enable doing only the lowest level stuff in C and rest
in python
|
|
|
|
- use PyErr_WarnEx() for better control and leave the tracking up to python
- use PendingDeprecationWarning for now
- document the replacing functionality in the deprecation messages
- make hdr.sprintf() just an alias to hdr.format() without deprecating,
at least for now it'd be only a gratuitous incompatible change on python side
|
|
|
|
- make flags, vsflags, color, prefcolor (previously not available)
and probFilter appear as internal attributes of ts objects, each
with their own setter/getter methods
- make the old custom set/get methods access the internal attributes instead
- keeping them "internal only" leaves room for adding further sanity
checking and nicer interface on python side while giving direct access
bits for those who want it
- not deprecating the old get/set methods at least yet...
|
|
|
|
- pretty much everything might need this...
|
|
- not strictly needed as it gets its default from a macro but .. shrug
|
|
- there's no need to change the rootdir after object creation, better
not permit at all
|
|
|
|
- make the scriptFd appear as regular attribute by providing a setter
method for it, permit any file object to be used and allow disabling too
- readonly for now as we dont have rpmfd wrapped yet
- remove now unnecessary custom get/setattr functions
|
|
|
|
- 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)
|
|
- 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
|
|
|
|
- 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
|
|
- permit disabling extension retrieval and "raw" (untranslated i18n) tags
- always use HEADERGET_ALLOC for data availability sanity
|
|
- 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
|
|
|
|
- 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
|
|
|
|
|
|
- only implement the bare minimum in C by adding a thin wrapper for
rpmsqIsCaught(), the rest can easily be done in python
|
|
|
|
|
|
|
|
|
|
|
|
- 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
|
|
- not very useful atm as various places return hard-wired built-in types
|
|
- 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()
|
|
|
|
- yet more preliminaries for subtyping
|
|
|
|
- more preliminaries for subtyping
- remove pointless NULL checks
|
|
- pass (sub)type down to wrappers
- call subtype tp_alloc() instead of PyObject_New()
- preliminaries for allowing subtyping
|
|
- the type is already validated by PyArg_ParseTupleAndKeywords(),
no need to doublecheck
|