Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: I21bf1a3a7c25cbec43022202cf2e5865b603a309
Signed-off-by: wangbiao <biao716.wang@samsung.com>
|
|
- Hasty push-finger syndrom, while its not exactly plain wrong to
do things this way, it doesn't really make sense for these types
either. Python's own file object permits reinitialization though,
so leaving rpm.fd() the way it is now.
- This reverts the following commits:
d056df28c38e602d82b4f9b527c686037074e660
3f77c3146da46a49f44b17fa66139fbe2dd9e45c
7214b2e0a271b7a7b3df312c58593878cbf56504
dc50fb2863c81159fb4cc8b25ce3862720c0cce5
|
|
- Specs are not really immutable, move the initialization work into
tp_init and use PyType_GenericNew for tp_new since we're not
doing anything special there.
- Eliminate the stupid spec_Wrap() thing and hide specPkg_Wrap()
out of side (TODO later...)
|
|
- Leaving the painful and somewhat pointless exercise of changing
all the Package and Source references for another rainy day
|
|
- permits python to access parsed headers from spec files
- ticket #14, RhBug:462726
|
|
- its our own private data structure we're accessing here, no need
for extra wrappers and nothing outside spec-py.c needs this
|
|
- import of _rpmb messes up rpm.error to point to _rpmb.error which we
do not want
- use ValueError for unparsable spec for now, need to figure something
saner there still
|
|
- 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
|
|
- pass (sub)type down to wrappers
- call subtype tp_alloc() instead of PyObject_New()
- preliminaries for allowing subtyping
|
|
|
|
- nothing wrong with comments but empty comment placeholders
are not exactly useful
|
|
- this way the only place where casts are needed are in the wrapper itself
|
|
|
|
- adjust include paths accordingly
|
|
|
|
|
|
|
|
|
|
CVS patchset: 7165
CVS date: 2004/03/11 07:03:40
|
|
CVS patchset: 7160
CVS date: 2004/03/10 22:44:29
|