summaryrefslogtreecommitdiff
path: root/rpmdb
AgeCommit message (Collapse)AuthorFilesLines
2008-04-30Kill the remaining alloca in fp doLookup()Panu Matilainen1-5/+8
2008-04-30One alloca() down in fp doLookup()Panu Matilainen1-4/+5
- single point of exit from the point where buf gets allocated
2008-04-29Use rpmGetPath() to construct full dbpath in db3open()Panu Matilainen1-12/+5
- another alloca() bites the dust...
2008-04-29Avoid alloca() in headerLoad()Panu Matilainen1-1/+3
- REGION_TAG_COUNT is a constant so local array would do even without C99..
2008-04-29Avoid alloca() in findTag()Panu Matilainen1-8/+7
- instead of putting RPMTAG_ into strings where it's not present, do it the other way around - avoids a string copy and redundant string comparisons on the RPMTAG_ part
2008-04-29Avoid alloca() in shescapeFormat()Panu Matilainen1-4/+4
2008-04-29Avoid alloca() in headerAddI18NString()Panu Matilainen1-3/+5
2008-04-29This code has been commented out since -99, time to let go...Panu Matilainen1-36/+0
2008-04-28Oops, simplified it a little bit much, fixingJindrich Novy1-3/+4
2008-04-28Remove remaining alloca() from rpmdb.cJindrich Novy1-5/+14
2008-04-28Simplify dirName handling in rpmdbFindByFile()Jindrich Novy1-7/+3
2008-04-28Eliminate pointless alloca() of hsa structPanu Matilainen1-31/+32
2008-04-28Remove bogus/misleading return value of hsaInit() and hsaFini()Panu Matilainen1-8/+4
- they don't (de)allocate anything, just modify contents of hsa arg
2008-04-28Remove useless hsa != NULL checksPanu Matilainen1-10/+6
- hsa has been already dereferenced before it's even checked for NULL in both hsaInit() and hsaNext() - they're just internal interfaces with limited number of callers, we know hsa can't be NULL
2008-04-28Eliminate pointless alloca() of local DBT structs.Panu Matilainen1-100/+100
2008-04-28Revert bunch of alloca() -> xcalloc() changes in rpmdb routinesPanu Matilainen1-28/+16
- reverts the following commits: 0b0dcd114028e1e2a00870917cf07a27858a30b1 71018d6d2d67b0e17c737e7a90cc6bb704e224ba f6134083c29c6cbb3be255fadae47a03d35b09f1
2008-04-24Remove outdated comment, add a todo reminderPanu Matilainen1-0/+1
- callbacks for pkgs without files have been faked for some time now..
2008-04-24Might as well compare against tag shortname now that we have itPanu Matilainen1-2/+2
2008-04-24Remove meaningless extern on function declarations in headersPanu Matilainen1-1/+1
2008-04-22Simplify rebuild path generationPanu Matilainen1-6/+1
2008-04-22More path manipulation craziness eliminated in rpmdbRemoveDatabase()Panu Matilainen1-20/+8
2008-04-22Eliminate wtf dbpath shuffling in rpmdbMoveDatabase()Panu Matilainen1-38/+19
- Just use rpmGetPath() to construct a clean, sanitized path from the components. - Previously it went to great lengths to ensure trailing / on dbpath, catenate the paths with %s/%s/%s and then rpmCleanPath() to get rid of the extra slashes just created. Eh.
2008-04-22Don't use alloca for struct stat, there's no need to.Panu Matilainen1-7/+7
2008-04-22Add rpmdb internal helper for cleaning up db4 environment, use itPanu Matilainen1-17/+27
2008-04-16Make headerNVR() just a special case of headerNEVRA()Panu Matilainen1-11/+7
2008-04-09Replace alloca+memset with xcalloc() in rpmdbRemove()Panu Matilainen1-6/+12
- return value is suspect: should return "ret" instead of 0 at exit depending on what happened in removal but preserving previous behavior for now...
2008-04-09Replace alloca+memset with xcalloc() in rpmdbAdd()Panu Matilainen1-4/+6
2008-04-09Replace alloca+memset with xcalloc() in rpmdbCountPackages()Panu Matilainen1-6/+10
2008-04-09Tonne of indentation + other formatting corrections to rpmdb.cPanu Matilainen1-70/+85
- no functional changes
2008-04-09Remove dead codePanu Matilainen1-25/+0
2008-04-09Report full nevra in rpmdb remove debug messagePanu Matilainen1-3/+4
2008-04-09Make headerGetNEVRA() return "src" as the arch of source packagesPanu Matilainen1-2/+4
2008-04-09Initialize pointers, lowercase local variablePanu Matilainen1-4/+4
2008-04-09Rewrite headerGetN*() for simplicityPanu Matilainen1-26/+21
- eliminate stpcpy() games - reuse evr formatting from headerGetEVR() instead of doing it over and over again everywhere
2008-04-09Add headerGetEVR() convenience functionPanu Matilainen2-0/+26
- return formatted evr string + optionally pointer to name
2008-04-09Make headerNEVRA() actually return epoch tooPanu Matilainen2-2/+7
- ...but epoch is an integer type in headers, change proto to match that
2008-04-08Eliminate four copy-paste versions of nibble(), stick to rpmstring.hPanu Matilainen1-18/+2
- the one in signature.c wasn't even used...
2008-04-07Eliminate several copy-paste hex converters, use pgpHexStr() insteadPanu Matilainen4-27/+3
2008-04-06Eliminate the uuuuugly and unsafe static tagname bufferPanu Matilainen3-22/+25
- generate the "human friendly" strings at build time, store into the tag table structure - also avoids copying of strings and lowercasing strings at runtime
2008-04-06Move the tagtbl.c generator monster awk out of Makefile.amPanu Matilainen2-14/+80
- stick it into a separate script, reformat so it's possible to actually read it...
2008-04-04getcwd(NULL,0) has undefined behavior, use rpmGetCwd() insteadPanu Matilainen1-2/+6
2008-04-04Remove copy-paste currentDirectory() from sqlite, use rpmGetCwd()Panu Matilainen1-12/+1
2008-04-03We don't support url's in db paths, rip.Panu Matilainen3-46/+11
- file:// vs / is silly and anything else wont work, so pretending url support just plain bogus
2008-04-03Replace silly static rpmioFileExists() in rpmdb.c with plain old access()Panu Matilainen1-41/+5
- accepting url's there is not only useless but just plain bogus
2008-04-03Remove ancient db1->db3 conversion cruftPanu Matilainen1-9/+0
2008-03-24Avoid static buffer for sql commandsPanu Matilainen1-6/+12
2008-03-24Revert rpmhash changes from previous commitPanu Matilainen1-2/+2
- rpmhash key + data actually sometimes point to const data.. pff
2008-03-24Remove bogus consts from rpmdb and dbi structsPanu Matilainen6-29/+29
2008-03-18Bump up sonames, we're not exactly ABI compatible with 4.4 anymore..Panu Matilainen1-1/+1
2008-03-18Minimal namespacing for locale-insensitive x*() string functionsPanu Matilainen4-20/+20