summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-12-07Bump soname for all our librariesPanu Matilainen29-13615/+14795
- while the "really public" API of librpmio has only been enhanced, librpm and librpmbuild use some supposedly internal bits which *have* changed considerably, so just to prevent anybody thinking they can combine librpmio from rpm 4.7 and librpm from this... - librpmbuild hasn't seen much real change but some (unfortunately) exposed struct members have changed so... - librpm is mostly compatible but as rpmal has become internal API, we need to bump (annoyingly, as nothing actually uses rpmal ... sigh)
2009-12-07ts.check() is supposed to return empty list when no problemsPanu Matilainen1-5/+1
2009-12-07Disable the entire rpm.td type for nowPanu Matilainen1-1/+2
- need to figure out saner semantics & stuff...
2009-12-07Make python header iterator return keys, not valuesPanu Matilainen1-3/+1
- this is how python built-in dictionary works, be consistent with that - also avoids having to decide what to do with rpm.td type right now...
2009-12-07Always return malloced data from i18n extensions for consistencyPanu Matilainen1-1/+1
2009-12-05Bump up the python version requirement to match realityPanu Matilainen1-3/+1
- Python >= 2.6 is known to work, 2.5 might be possible with __future__ imports but until somebody tests it...
2009-12-02Fix the posix chown test for selinux enabled systems (RhBug:543035)Panu Matilainen1-1/+1
- on selinux enabled systems, 'ls -l' mode string is longer than expected here, just trim the ls output to our expected length
2009-12-02Back out overly strict file type check on %ghost filesPanu Matilainen1-6/+0
- we currently only support creating regular files for %ghosts which dont exist in the buildroot, but for files that do exist in the buildroot there's no reason to place such limits (eg its perfectly ok to have symlinks marked as %ghosts)
2009-11-27Use AS_HELP_STRING() for configure option outputPanu Matilainen1-10/+10
2009-11-27Remove pointless message translation from check-buildrootPanu Matilainen1-1/+1
- these scripts aren't processed for translation and unlikely to ever be... - fixes the remaining complaint from ticket #62
2009-11-27Remove ancient broken scripts from the repositoryPanu Matilainen3-206/+1
- also eliminates one more "bashism" complaint of ticket #62
2009-11-27Fiddling with ulimit settings does not belong to dep extractor scriptsPanu Matilainen2-2/+0
- fixes one of the bashisms in ticket #62
2009-11-27Correctly pass optional tag argument from hdr.dsFromHeader() (ticket #108)Panu Matilainen1-2/+9
2009-11-27Dont try to pass anything to rpm.fi() from hdr.fiFromHeader()Panu Matilainen1-2/+5
- hdr.fiFromHeader() is just a deprecated backwards compatibility dummy and doesn't need to pass anything as there were no meaningful parameters in older versions
2009-11-26Dont fail build on unrecognized non-executable files (ticket #105)Panu Matilainen1-3/+9
- Generally only executable files are critical for dependency extraction, whereas oddball application data files can cause unnecessary build failure due to libmagic misdetections etc, so just let non-executables pass with a warning and mark them as unknown data
2009-11-26Just use autoreconf in autogen.sh (ticket #109)Panu Matilainen1-16/+1
- instead of doing stuff by "hand" and getting it wrong, let autoreconf worry about getting it right (if nothing else, we can then blame autoreconf instead of ourselves ;)
2009-11-25Fix signature password checking result on abnormal conditions (RhBug:496754)Panu Matilainen1-1/+2
- Execve() failure wasn't returning an error code, causing rpm to think the password was ok when we couldn't even try verifying - Stricter return code checking from the password checking child: the password can only be ok if the child exits with WIFEXITED() *and* WIFEXITCODE() of 0. Also WIFEXITCODE() should only be called if WIFEXITED() returns true.
2009-11-25We can't handle OpenPGP subkeys or secret keys, so dont even tryPanu Matilainen1-5/+3
- parsing subkeys ends up overwriting data in the main key, causing bogus signature checking failures - this is the final missing piece of RhBug:436812, short of adding proper support for subkeys (maybe someday...)
2009-11-24Dont blow up on headers without requireflags in rpmdsNew()Panu Matilainen1-1/+1
2009-11-24Nuke leftover debug junkPanu Matilainen1-1/+0
2009-11-24Support constructing header data from pythonPanu Matilainen1-4/+121
- no proper i18n string support yet, just the basic types - basic data type validation only, no overflow checking for integer types - for lists, validate all items before trying to insert anything - duplicate tag creation not permitted - appending not permitted, only assignment (and deletion already) - there are probably bugs... - watch out for librpm bugs when passed incomplete headers, ugh
2009-11-24Disable rpm.td type for nowPanu Matilainen1-0/+4
- its not that clear that exporting the td type is really useful (certainly not in its current form), avoid exporting an interface we might not want to support
2009-11-23Fix hdrContains() return value on errorPanu Matilainen1-1/+1
2009-11-23Remove bogus rpmpopt.pot file (ticket #77)Panu Matilainen1-84/+0
- this is supposed to automatically generated on update-po time from toplevel rpmpopt file and merged into rpm.pot but has been broken for a long long time and also the $ translation marking has been deprecated for security reasons
2009-11-21Remove hdr.has_key() method, support 'key in h' style insteadPanu Matilainen1-5/+16
- Python 3 removed has_key() from dictionaries, as the 'in' way is the way of the future support that from the start (has_key() is not in any released rpm version so its safe to remove)
2009-11-21Remove unnecessary hdr.instance() methodPanu Matilainen1-7/+0
- this is available through tag extension now, no point having a separate method for it
2009-11-21Typos in exception messagesPanu Matilainen1-2/+2
2009-11-20Error out early trying to install on readonly fs (ticket #99, RhBug:464750)Panu Matilainen1-1/+1
- simply make readonly filesystems appear as full, preventing install early instead of failing with cpio errors in middle of transaction
2009-11-20Convert French man page to Unix line-endingsPanu Matilainen1-848/+848
2009-11-20Fix build with binutils-gold (ticket #107)Panu Matilainen1-2/+2
- patch from Michal Čihař
2009-11-20Add RPMTAG_EPOCHNUM tag extensionPanu Matilainen3-0/+18
- return RPMTAG_EPOCH but convert non-existent epoch to 0, as rpm internals treat it
2009-11-19Add spec package type with access to headers to python rpmb modulePanu Matilainen3-0/+107
- permits python to access parsed headers from spec files - ticket #14, RhBug:462726
2009-11-19Permit header object generation from PyCObjectsPanu Matilainen1-0/+2
- needed for generating header objects from other extension modules & might be handy in some other cases too - patently type-unsafe but as long as python doesn't provide a better way, not really our headache
2009-11-18Lose the silly specFromSpec()Panu Matilainen2-13/+6
- its our own private data structure we're accessing here, no need for extra wrappers and nothing outside spec-py.c needs this
2009-11-18Turn current python spec methods into read-only attributes via getsetersPanu Matilainen1-18/+15
- incompatible, but nobody is really using the spec bindings for anything as there's been very little you've been able do with them - having the stuff accessible as getseters means we dont need 50 different fooSet() methods if/when we permit modifying these from python
2009-11-18Sanitize python spec.sources()Panu Matilainen1-20/+9
- spec without sources is perfectly valid, just return an empty list instead of invalid NULL return without exception set and simplify
2009-11-18Put a bit of sanity into python spec methodsPanu Matilainen1-22/+13
- prep, build etc missing from spec are not errors - instead of returning NULLs (with no exception set!), just return None for anything that doesn't exist - dont bother with NULL checks, if s->spec is NULL then something else has screwed up big time
2009-11-18Oops, tp_dealloc doesn't return anythingPanu Matilainen1-1/+1
2009-11-18Fix rpmProblem reference counting in python bindingsPanu Matilainen1-2/+8
2009-11-18Declare a few python functions only taking one argument as suchPanu Matilainen1-15/+9
2009-11-18Rip python checkSignals() wtf'eryPanu Matilainen1-3/+2
- since the function takes no arguments, declare it as such...
2009-11-18Python archscore() only ever takes one argument, simplifyPanu Matilainen1-8/+4
2009-11-18Make python ts.problems() return a python list, not rpm.ps objectPanu Matilainen4-147/+12
- rpm.ps object only supports iteration and subscript (with wonderfully wacko semantics), returning a regular list serves us better - rip the now useless rpm.ps object type
2009-11-18Remove unused psFromPs()Panu Matilainen2-7/+0
2009-11-18Eliminate broken rpmps append() method from python bindings (RhBug:538218)Panu Matilainen1-26/+1
- The code to insert new problems has been using invalid conversion code causing crashes since 2004 and nobody noticed, safe to say this is an unused interface. Additionally the method argument flags were wrong, it was declared as METH_VARARGS but actually expected METH_O semantics. RIP.
2009-10-30Add in-memory hash for caching rpmdb dependency lookupsPanu Matilainen1-17/+50
- worst case behavior for uncached dependency lookups can be disastrous, eg > 35s vs < 1s on my laptop for trying to remove /bin/sh provider - we only bother caching rpmdb lookups, the other cases plenty fast already - using in-memory cache avoids nasty in vs out of chroot issues with temporary db files, which otherwise were about as fast
2009-10-30Document our new format extensionsPanu Matilainen1-1/+10
2009-10-30Add file verifyflags format extensionPanu Matilainen2-0/+37
2009-10-30Add file state format extensionPanu Matilainen2-0/+42
2009-10-30Update rpmtd formats comments to match realityPanu Matilainen1-9/+9
- we dont require exact int32 etc types, any numeric type works