Age | Commit message (Collapse) | Author | Files | Lines |
|
- Besides there not being much point in having a separate source + header
for a small single function, this fixes build on case-insensitive
systems such as Mac OS X.
|
|
|
|
|
|
- instead of copy-slopping (and forgetting to do so whenever something
changes) just use the values we know from pgpVals..
|
|
- 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.
|
|
- as all the value tables are static inside rpmpgp.c, exposing this
is pointless (should've been unexported long time ago)
|
|
- 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.
|
|
- 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 /
|
|
|
|
|
|
|
|
- tsmem->delta is still needed for tsmem->order reallocation,
zero delta causes funny effects on larger package sets (test suite
doesnt trigger this)
|
|
- On package reinstall (ie --replacepkgs) we only know the old header
by the instance number, and grabbing the header from the db in
psm as a special case for that is more trouble than just doing what
we always did.
- Reverts commit e16695e932e294ec600e673d38c41bde20931204 and unbreaks
the --replacepkgs test case
|
|
|
|
- unused now but allows various new things and more element "independency"
- eliminate the unused dboffset argument while at it
|
|
|
|
|
|
from the API
|
|
|
|
|
|
Add some statistics to be able to find out how full the hash is
|
|
|
|
- both are "can't happen" situations but easy to handle cleanly here...
|
|
- use xcalloc() to ensure clean state, no need to manually do it all
- group non-conditional and conditional operations together
|
|
- no point splitting this up, its just straightforward freeing of stuff
- dont bother with tonne of assigning everything to NULL, it gets
zeroed out by memset() anyway
|
|
- the only meaningful way to create transaction elements is by adding things
to a transaction through rpmtsAddFooElement(), there's no need to
expose these and restrict our ability to change the API when needed
|
|
- headerNew() cannot fail, dont bother checking
- initialize variables on declaration
|
|
- fix dumb double-initialization error introduced somewhere between
4.4 and 4.6, also while-loop is more natural here than for-loop
|
|
- remove questionable rpmtsClean() call remnants from rpm 4.4.x days
when it used to clean the signature/digest data in ts but also
clean a pile of completely unrelated items
- rearrange the error code handling so we can get by with single place
of freeing the temp allocations
- move local variables to the scope where needed and eliminate unnecessary
ones
- remove redundant NULL check on argv, this is already done by caller
- remove unused qva argument (static function so no API implications)
|
|
|
|
- This seems to be a de-facto standard in python land, as rpm.version
hasn't been in any released version we can still change this easily.
Suggestion from James Antill.
|
|
|
|
|
|
|
|
New status: 721 messages complete with 1 fuzzy and 0 untranslated.
Transmitted-via: Transifex (www.transifex.net).
|
|
- BDB docs state that db->verify() doesn't perform any locking even
when used within an environment, and should only be used on files
that are not being modified by another thread of control. Grabbing
the transaction lock while verifying mostly ensures nobodys writing
to the db behind our back.
|
|
- This is an undocumented BDB interface (only documented in the db.h header),
and its not something users should be messing around with
|
|
- Although it doesn't really happen in practise, rpm's API permits several
transactions with possibly differing roots within process lifetime.
Previously the lock path was calculated just once globally so we could
easily be locking in a completely wrong place (eg locking in a previously
accessed chroot when system rpmdb should be transaction-locked)
|
|
- Move transaction lock path handling into rpmts.c, export new low
level rpmlockAcquire() function to actually grab a lock
- Rename rpmtsFreeLock() to rpmlockFree() and return NULL in the
general rpm style
|
|
|
|
|
|
- one more of these still left behind.. pff
|
|
- This mechanism has never been used by anything at all, which suggests
its not a particularly useful feature
- Removing unused rpmpsTrim() from rpmps
- Marking okProbs parameter of rpmtsRun() function as unused to avoid
unnecessary breakage
|
|
In the loop, dbix is always initialized to 0, so checking (dbix < 0)
is uselss. Insetead, we sould check (dbix >= dbiTagsMax).
|
|
- This gets called separately for requires, conflicts and obsoletes,
wth should it loop over conflicts when looking for requires?
|
|
- this currently fails due to commit e16695e932e294ec600e673d38c41bde20931204,
on reinstall element header vs db header mismatch, adding this as
a reminder to fix it...
|
|
- fixes eg Requires(pre,postun) case which must not be filtered out here
|
|
|
|
- RPMTAG_CAPABILITY and RPMTAG_RHNPLATFORM are truly obsolete and
should've been taken out a long time ago
|
|
- dumb copy-paste error from commit a317eaadc3f7b9b4ec373719e7d60fb8b98e2c21
|