summaryrefslogtreecommitdiff
path: root/rpmdb
AgeCommit message (Collapse)AuthorFilesLines
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
2008-03-17Remove support for automatic rollback on failurePanu Matilainen1-14/+0
- doing this reliably from rpm is simply not possible as there's no way to undo script actions, might as well not pretend we can - for a feature that's not generally usable it complicates mainline code way too much
2008-03-12Refcount dbiTags on db open+close, automatically freePanu Matilainen2-46/+58
- avoids rpmdb_internal include in rpmqv.c and memleak in API clients - avoids having to export dbiTags(Max) at all
2008-03-07Log message adjustmentsPanu Matilainen3-43/+43
- dont waste translator time by having them translate obscure debug messages - adjust some suspect looking logging levels - mark some non-debug messages for translation where missing..
2008-03-06Make headerCopyTags() tag list const, the list isn't modified..Panu Matilainen2-3/+5
2008-03-06Mark rpm tag tables read-only as far as we can..Panu Matilainen3-4/+4
2008-03-06Mark various header tables and definitions as read-onlyPanu Matilainen2-5/+5
2008-03-06Make the rpmdb vectors readonlyPanu Matilainen4-8/+8
2008-02-25Eliminate rpmdb refcount debug junk from the APIPanu Matilainen2-18/+8
2008-02-22Remove ancient commentary from header.hPanu Matilainen1-67/+0
- history is interesting but public headers aren't the place for it - "implemented soon after" from 2001 comments are hardly useful :)
2008-02-22Remove useless ifdeffed typedefsPanu Matilainen1-12/+0
- rpmdb & iterator are typedeffed in rpmtypes.h already..
2008-02-14Improve header i18n locale matchingPanu Matilainen1-5/+7
- Get best lang from rpm HEADERI18NTABLE, instead of getting first fuzzy match (eg: zh_TW matches zh_CN whereas zh_TW entry is available) Patch from Pascal Rigaux
2008-02-14Fix a bunch of string format mismatches found by gcc's variadic checksPanu Matilainen1-10/+10
Patch from Michal Marek
2008-02-05Mass convert (back) to rpmTag as it's usable everywhere nowPanu Matilainen9-68/+68
- cast away a few cases where the enum usage causes ridiculous amount of compiler warnings from unhandled switch-cases
2008-02-05Use rpmTagType always now that it's available everywherePanu Matilainen7-61/+61
- RPM_MASK_TYPE is not a datatype, move it out of the enum - add missing cases python header handling to shut up gcc
2008-02-05Couple of missed type abstractionsPanu Matilainen2-2/+2
2008-02-05Yet another typedef for transaction ID, use where spottedPanu Matilainen1-2/+2
- most remaining [u]int16|32 uses are indexes and such, ie actual numbers