summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Call read() repeatedly to avoid rpm2cpio break on a pipe as input (#802839)rpm-4.8.xFlorian Festi2012-10-151-1/+16
|
* Enable dbenv->failchk() functionality on BDB >= 5.0 tooPanu Matilainen2010-10-261-3/+3
|
* Eliminate leftover checks for Berkeley DB < 4.3 compatibilityPanu Matilainen2010-10-261-14/+0
| | | | | - We haven't actually supported versions that old in a while, and this happens to cure build for newer versions...
* Preparing for 4.8.1rpm-4.8.1-releasePanu Matilainen2010-06-1127-3407/+3407
|
* If there are no hardlinks, dont bother with s-bit and caps removalPanu Matilainen2010-06-111-1/+1
| | | | (cherry picked from commit 89be57ad9239c9ada0cba94a5003876b456d46bf)
* Fix "empty reply from server" curl-syndrome with url retrieval (RhBug:598988)Panu Matilainen2010-06-111-1/+1
| | | | | | | - We were adding a trailing newline to urlhelper command line passed to execvp(), with the newline ending up in the URL passed to curl. Many servers dont seem to mind the extra newline, but some do. Oh well... (cherry picked from commit 15c0c4e7a1291915a4ea4115e94d2b747d5091ac)
* Remove POSIX file capabilities from executables on erase/rename tooPanu Matilainen2010-06-111-2/+7
| | | | | | | - Just like suid/sgid bits, hardlinks to executables with capabilities set can "leak" permissions to old, potentially vulnerable versions of binaries. Related to RhBug:598775. (cherry picked from commit 4d172a194addc49851e558ea390d3045894e3230)
* Strip s-bits on upgrade too (RhBug:598775)Panu Matilainen2010-06-111-5/+14
| | | | | | | - Previously only actual package removal would clear s-bits from s[ug]id files. This needs to be done on upgrade too to prevent leaving vulnerable hardlinks of s[ug]id binaries around. - backported from commit ca2d6b2b484f1501eafdde02e1688409340d2383
* Permit DOS line-endings in PGP armors (RhBug:532992)Panu Matilainen2010-06-111-4/+7
| | | | | | | - RFC-4880 doesn't requires unix-style line-endings, we shouldn't either. This is probably still oversly strict as RFC-4880 appears to permit any whitespace to follow armor headers but ... shrug. (cherry picked from commit cadab3afa55388f3082a3468d582896caabfd55c)
* Use pgpValString() for :pgpsig header formatting (RhBug:587755)Panu Matilainen2010-06-111-24/+2
| | | | | | - instead of copy-slopping (and forgetting to do so whenever something changes) just use the values we know from pgpVals.. (cherry picked from commit e63293b0ea1c6a3a4be6aca328ee9fae4c3bfcdb)
* Add public pgpValString() function + enum for the various typesPanu Matilainen2010-06-112-8/+46
| | | | | | | - The equivalent used to be possible in 4.4.x era as the value tables were all exported, but this way we need to export far less and the implementation details stay internal. (cherry picked from commit 2be413810cd78b0a503699ceca3f8e1505f1b425)
* Handle non-existent dependency sets in python (RhBug:593553)Panu Matilainen2010-06-111-2/+3
| | | | | | | | | | | | | | | | - rpmdsNew() returns NULL if the requested dependency type doesn't exist in the header. The C-side API can handle NULL to all rpmds "methods" and this is how librpm deals with non-existent sets rather than waste memory on for empty ds structures. However the python side wasn't expecting NULL for legal requests (but not setting error either) and thus blowing up with SystemError exception. - Raise TypeError on illegal arguments to rpm.ds constructor, and present non-existent dependency sets as empty rpm.ds objects to python. This lets python callers use iteration over ds items regardless of whether the dependency actually exists or not. The alternative of returning None (or raising exceptions) would break existing code for no particularly good reason. (cherry picked from commit 0e0e332b466a9784620c483faa374067381e96ce)
* Fix return from chroot() on verify (RhBug:590588)Panu Matilainen2010-06-111-1/+7
| | | | | | | - a couple of important steps in chroot() in and out sequence missing, causing "No such file or directory" whining on return from chroot() unless cwd happened to be / - backported from commit 2b7884ce2914c48514023dbe61dc7a126964f438
* Fix minor header iterator leak in rpmReSign()Panu Matilainen2010-06-111-4/+2
| | | | | | - fix dumb double-initialization error introduced somewhere between 4.4 and 4.6, also while-loop is more natural here than for-loop (cherry picked from commit 834c8383476fe54c65fe07b69c01cd3d35f5a488)
* Don't process desktop files without Type=Application and Exec= linePavol Rusnak2010-06-111-4/+6
| | | | (cherry picked from commit 3b96dfb29ab75a4f7f37713a93ec39460c158ef0)
* Make rpm version available to python through __version__, add __version_info__Panu Matilainen2010-06-112-0/+5
| | | | | - backported from commits ed74161b7e5b90ba886926ced14ba3aca018a4f4 and 21962ab6142cd1e54f1087a545244de506d9abf1
* Fixes missing __fxstat64 symbol on mac.Giulio Eulisse2010-06-111-0/+1
| | | | (cherry picked from commit d131c3393a2a43d87047bffdd73cf9ae3c8146c2)
* Add a basic reinstall test to test-suitePanu Matilainen2010-06-111-0/+17
| | | | | | | - this currently fails due to commit e16695e932e294ec600e673d38c41bde20931204, on reinstall element header vs db header mismatch, adding this as a reminder to fix it... (cherry picked from commit a0ed26b894e301d479c8092c9c7fa16f2d6c3c2c)
* Use correct tag for NOPATCHPanu Matilainen2010-06-111-1/+1
| | | | | - dumb copy-paste error from commit a317eaadc3f7b9b4ec373719e7d60fb8b98e2c21 (cherry picked from commit a761daa2f8a0edb66733444f49f032f3a13035b1)
* RPMTAG_NOSOURCE and NOPATCH aren't internal, they end up in nosrc headersPanu Matilainen2010-06-112-2/+4
| | | | (cherry picked from commit 538ddff69cacbd0db346cac3c10171424ae9b229)
* Gnu tar sometimes prints a "tar: Record size = 16" message, breakingMichael Schroeder2010-06-111-1/+7
| | | | | rpmbuild -ta. (cherry picked from commit b2efc89d7db4f3a31dfd7f91028c5a9f9643334f)
* Adapt the Makefile as rpmdb_svc can no longer be built.Michael Schroeder2010-06-111-10/+0
| | | | (cherry picked from commit dfa98e7a064d9ea28b416b52f2673202799bcb9f)
* New gcc versions comlpain about undefined behaviour...Michael Schroeder2010-06-111-2/+2
| | | | (cherry picked from commit 18c3e1a37c482811b7b3af1415ef67aac527b869)
* readLineFromOFI may modify the fileStack, thus we have to re-setMichael Schroeder2010-06-111-0/+1
| | | | | ofi after calling it (cherry picked from commit daec6ebf58331776279f389738af4788b865033d)
* Do not load keyring if signature checking is disabled.Michael Schroeder2010-06-111-2/+6
| | | | (cherry picked from commit cad147070e5513312d851f44998012e8f0cdf1e3)
* Seems like a change was made to make %attr(-) go back to theMichael Schroeder2010-06-111-8/+28
| | | | | defattr setting. Unfortunatelly this broke %defattr(-). (cherry picked from commit 64e7f2aeb4ce01fccacde021fb22c85083284efb)
* On header iteration format queries, dump the contents as-isPanu Matilainen2010-06-111-1/+4
| | | | | | | | - This makes eg --xml query of packages give out the true contents of the package, raw i18n strings and all, which is what you probably want when examining the contents on this level. Regular queries still run with all bells 'n whistless enabled. (cherry picked from commit c397a09be3efd087afeb25a5b01715eb8c889cdb)
* Disable header i18n lookup in headerCopyTags() (RhBug:578299)Panu Matilainen2010-06-111-1/+1
| | | | | | - without HEADERGET_RAW here, only one of the translations in header (whatever happens to be "current" locale) gets copied - backported from commit 3ac99bd8c21436d8c70d462b64bf63453415a689
* Report all enabled dependency bits in deptype format extensionPanu Matilainen2010-06-111-12/+11
| | | | | | - dont make assumptions about which bits can be enabled simultaneously, just dump 'em all (cherry picked from commit 750b534942f0191f2d14d2974541ecaaa13820a5)
* Document deprecation of mi.count() and ds.Count().Ville Skyttä2010-06-112-2/+2
| | | | (cherry picked from commit e50e3d14e5149f5c7b30c8a0208e7e8bd80ee24a)
* Add RPMBUILD_ISFOO constants to python rpmb module (ticket #123)Panu Matilainen2010-06-111-0/+6
| | | | (cherry picked from commit ee98a373cf79d3248122ae147d98ac461d59c9b7)
* Add __bool__() / __nonzero__() method to python rpmmi objects (ticket #153)Panu Matilainen2010-06-111-1/+20
| | | | | | | | | | | - Objects supporting __len__() use (len > 0) for boolean representation, which normally makes sense but as the match iterator count is often zero despite the iterator actually existing and returning something, and breaks existing code (rpmlint at least) - Adding a __bool__() (known as __nonzero__() in Python < 3) method returning true for non-NULL iterator fixes this and gives more meaningful answers than pre 4.8.0 which simply always returned True (cherry picked from commit 40f788a7bf3741f9c613ff302d4e1b0ceec2658c)
* Verify the various version comparison results in testsuitePanu Matilainen2010-06-111-15/+24
| | | | (cherry picked from commit 09423eb47039a6f830592cc326d40bcd71650530)
* Add some basic dependency check tests to test-suitePanu Matilainen2010-06-114-0/+202
| | | | (cherry picked from commit d2d7ca7d43be0491f2f43d4867d4adbefbf922de)
* Differentiate between conflicts in db versus install setPanu Matilainen2010-06-111-1/+1
| | | | | | - this appears to have been broken since its introduction in 2002, commit d89ce5854d39a9e896759fb96e6e303c67573bb6... - backported from commit a609aa7dbcf4738f3b47a63d3062dcadf58ef2fa
* Avoid eating empty lines in spec %prep section (RhBug:573339)Panu Matilainen2010-06-111-1/+1
| | | | | | | - In spec %prep context empty lines don't usually matter but they can be significant in eg here-documents. - Fixes regression from commit 94ff22b129aeb31c38848231e40f87aa4a5613a1 (cherry picked from commit 12802c36c9a3b7260d9f788afc826b1cc5ee05e2)
* Add an enhanced argvSplitString() function for splitting strings to argv'sPanu Matilainen2010-06-112-3/+25
| | | | | | | | | - Returns the newly created argv instead of useless "this always returns 0" - By default make a "real" split, including empty strings - Flags argument allows controlling behavior, for now only flag is to preserve argvSplit() behavior but leaves room for future enhancements such as quoted splitting etc (cherry picked from commit 35052b96232810cbf0d91a4f1d1d3ff25a142fd0)
* Tell python about RPMTRANS_FLAG_NOCONTEXTSPanu Matilainen2010-06-111-0/+1
| | | | (cherry picked from commit 8c5332984e32d27d28f9a440947b070af0d14c45)
* Plug a silly memleak in processPackageFiles()Panu Matilainen2010-06-111-1/+2
| | | | (cherry picked from commit f3ca4fb48171b4bd0549fe67f302517135c465ff)
* Handle erased packages wrt disk-space problem reporting (RhBug:561160)Panu Matilainen2010-06-111-2/+6
| | | | | | | | | | | - erased packages in the transaction cause space needs to shrink, which commit 2222e81e1cf74bbf78acb9969592ab06e2289929 failed to take into account, causing false disk space errors from unaffected packages - adjust obneeded and oineeded when the requirements shrink - new disk space problems can only occur when the requirements grow, change the pmtsCheckDSIProblems() check to reflect that (although not strictly necessary) (cherry picked from commit 4e4aec28c544f2884cb76be37d508f376db5cb7c)
* Remove no longer neede rpmts->filesystemCount and->filesystemsFlorian Festi2010-06-113-5/+0
| | | | (cherry picked from commit 27b216694a9e19f932f24e6fceb6c114aeae5fb9)
* Fix stupid off by one errorFlorian Festi2010-06-111-1/+1
| | | | (cherry picked from commit ee35635243f1e282d04066014af6349227cd6498)
* Avoid loading information for all filesystemsFlorian Festi2010-06-111-63/+109
| | | | | | This patch is heavily based on the "lazystatfs" patch by Michael Schroeder from Novell/SUSE. Thanks! (cherry picked from commit 647a809641a15cf0fcbc02ada85adcd493f2dc3b)
* Fix include path of luaext subdirPanu Matilainen2010-06-111-2/+1
| | | | (cherry picked from commit 53e3f65b8e2f3b8883a8410c7732062155b87957)
* Document --conflicts in rpm(8).Ville Skyttä2010-06-111-5/+8
| | | | (cherry picked from commit d390e2544660e028bf42441c8cec57b4b92c018e)
* Sanitize signature checking formatResult() a bitPanu Matilainen2010-06-112-7/+4
| | | | | | | - whole lotta unnecessary wankery here (what have I been thinking) - avoid using the non-standard strndup(), we checked for it in configure but didn't provide an alternative so checking was just bogus - backported from commit 0edc291e50f9b6023a3e8e560d590e1dd2149a7f
* Really fix verification error code to not depend on verbosity (RhBug:557101)Panu Matilainen2010-01-211-1/+1
| | | | | | | - earlier fix from commit 6649c23cac5823d0c7415df5cfd66e5aac5eebd2 was broken as it could reset return code to zero after detecting errors earlier (cherry picked from commit 04ad4b1155ec4b082fbac425a575a0ba05337ab1)
* Fix double-free segfault on url retrieve to read-only media (RhBug:557118)Panu Matilainen2010-01-211-1/+1
| | | | (cherry picked from commit ce1d2e87157f4a7ebc4f4d6f26024ac597400367)
* Preparing for rpm 4.8.0rpm-4.8.0-releasePanu Matilainen2010-01-081-1/+1
|
* Hardwire lead major version to 3 (RhBug:546663)Panu Matilainen2009-12-171-1/+1
| | | | | | | - besides the logic being backwards wrt intended --nodirtokens linkage, LSB wants this to be 3 and .. it just makes no difference whatsover anyway (cherry picked from commit 0bac1d421ccdcc719e2e60bcfb4859d0f602510c)