summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-15Eliminate pointless argument sanity checkPanu Matilainen1-7/+0
- --root is valid for all the remaining modes, no point checking for it - MODES_FOR_DBPATH is completely unused (and dbpath is a common option to all anyway)
2010-11-15Hide obsolete --nomd5 switches from help outputPanu Matilainen2-2/+2
- We dont want new users to pick up using these old switches but preserving functionality for backwards compatibility for now
2010-11-15Basic protection against Lua os.exit() and posix.exec() (ticket #167)Panu Matilainen4-2/+52
- Track posix.fork() and only allow exit() and exec() if the script has forked. There are other questionable items in posix extensions too but these are the worst offenders. - Using Lua registry for tracking forked status might be more Lua-way option but this'll do for now.
2010-11-15Remove unnecessary includesPanu Matilainen1-2/+0
2010-11-15Rearrange new cli utilities' popt tables for nicer outputPanu Matilainen4-11/+35
- Use a separate table for the tool-specific options, include that from the "master" option table to get option group summary in --help.
2010-11-15Oops, rpmspec.c missing from POTFILES.inPanu Matilainen1-0/+1
2010-11-15Get rid of 'rpminstall' binary & manual afterall, flip flopPanu Matilainen9-313/+2
- It's a bad name for something that can also erase packages, leave the install/upgrade/erase modes for /bin/rpm instead.
2010-11-11Remove superfluous dbiSync() call (refactoring thinko or such)Panu Matilainen1-1/+0
2010-11-11Switch fsync off while building indexesFlorian Festi1-1/+4
2010-11-11Fix index auto creationFlorian Festi1-20/+8
2010-11-11Rename rpm.ii.offsets() to .instances() to match name of mi.instance()Florian Festi1-3/+2
2010-11-10l10n: Updated Italian (it) translation to 100%Guido Grazioli1-308/+151
New status: 741 messages complete with 0 fuzzies and 0 untranslated. Transmitted-via: Transifex (www.transifex.net).
2010-11-10Don't restore db file atime/mtime after rebuildPanu Matilainen1-6/+1
- The files are regenerated from scratch, involving header record numbers moving around, possibly removing broken headers and all. Don't pretend nothing changed when some changes almost certainly, occurred, various API users rely on rpmdb mtime for determining whether the db has changed since they last accessed it.
2010-11-09Kill broken --rebuilddbpath popt aliasPanu Matilainen1-2/+0
- It's been broken because of a typo for the last ten years and nobody noticed, doesn't seem like a particularly useful switch...
2010-11-09Eliminate silly "I am about to create a directory now" debug loggingPanu Matilainen1-4/+0
2010-11-09Simplify the dbpath shuffle in db rebuilds a bitPanu Matilainen1-15/+10
- We already have the non-prefixed dbpath at hand, use that instead of recalculating the path from the prefixed version
2010-11-09Dont bother NULL'ing local variables on exitPanu Matilainen1-2/+2
2010-11-09Eliminate pointless (and racy) test for rebuilddb directory existencePanu Matilainen1-7/+0
- mkdir() will error out with a reasonable error message of its own, no point doing separate, buggy test with access()
2010-11-09Remove unused local variableFlorian Festi1-1/+0
2010-11-09Hide --aid and --nosuggest switches for nowPanu Matilainen1-3/+4
- These have been no-ops since rpm 4.6, but might resurface one day so leaving them around but out of sight...
2010-11-09Lose useless --fileconflicts cli-switchPanu Matilainen1-3/+0
- We always detect file conflicts (duh!) unless forced, no need for this
2010-11-09Move --dbpath into common rpm popt options tablePanu Matilainen2-5/+8
- This ensures its available in all our executables without adding umphteen copies into rpmpopt (after the cli splits, this was missing in eg rpmdb executable...)
2010-11-09Eliminate stillborn codePanu Matilainen1-13/+0
2010-11-05Fix IndexIterator to not open an private dbi that never gets closedFlorian Festi1-2/+2
2010-11-05Const-correctness: rpmdsRpmlib() doesn't (and must not) modify tblpPanu Matilainen2-2/+2
2010-11-04Lose the remaining dbapi references in code + configurationPanu Matilainen5-53/+6
- Changing db_api to db_ver to force breakage on anything using the value, db_ver containing the BDB major version just to put something in the error messages where the dbapi version used to be.
2010-11-04Eliminate useless dbapi version to internal openDatabase()Panu Matilainen1-19/+6
2010-11-04Eliminate useless dbapi argument to rpmdbRemoveDatabase()Panu Matilainen1-19/+9
2010-11-04Start eliminating dbapi leftoversPanu Matilainen1-49/+39
- We've only one dbapi and new ones are not around the corner. It doesn't get tested and is likely broken at this point anyway, better just kill it completely. We'll need a new mechanism one day but lets worry about it when the day actually comes. - Starting with eliminating dbapi arguments to the internal database move helper
2010-11-04Eliminate unused strlen() calls 'n stuff from skipInstallFiles()Panu Matilainen1-9/+3
- These were used by the netsharedpath calculations which used to be inline here, but that's now in a function of their own. Also move the temporary variables to the scope where they're actually used.
2010-11-04Remove nicely misleading #ifndef NOTYET case from skipInstallFiles()Panu Matilainen1-8/+1
- No point "documenting" with reverse ifdef's what somebody was considering to implement eight years ago, as it is directory and file iterations can't be mixed as they both mess with fi->j. - Also eliminate pointless "can't happen" check - this never gets called with NULL fi in an element (which is already a cant happen)
2010-11-03l10n: Updated Ukrainian (uk) translation to 100%Yuri Chornoivan1-978/+1135
New status: 741 messages complete with 0 fuzzies and 0 untranslated. Transmitted-via: Transifex (www.transifex.net).
2010-11-03Merge rpmdbIndexIteratorKey and rpmdbIndexIteratorKeySize into ↵Florian Festi3-39/+28
rpmdbIndexIteratorNext
2010-11-03Make ints in IndexIterator API unsigned as the interal types areFlorian Festi2-11/+11
2010-11-03Rename rpmdbKeyIterator to rpmdbIndexIteratorFlorian Festi9-145/+145
2010-11-03Give access to the pkg offset and tag num of the index entry the key ↵Florian Festi3-2/+71
iterator is pointing to
2010-10-30Const-correctness: source is a pointer to fullSource and must not be freedPanu Matilainen1-1/+1
2010-10-29Const-correctness: rpmCharCheck() doesn't modify field, make it constPanu Matilainen2-3/+3
2010-10-29Add rough-cut man-pages for our new executablesPanu Matilainen8-0/+1001
- Chainsaw relevant information out of rpm.8 and tweak a little bit, adding cross-references etc. These will need a lot more love though...
2010-10-29More ancient cruft removal from the repositoryPanu Matilainen1-43/+0
2010-10-29Lose ancient lclint remnants from the repositoryPanu Matilainen3-53/+0
2010-10-29Eliminate unused truncStringBuf() functionPanu Matilainen2-12/+0
- This has been unused at least as far back as rpm 4.4 actually...
2010-10-29Eliminate unused spectag and speclines goo from specPanu Matilainen5-108/+0
- These were used, back in the day, to implement a hidden --specedit switch, which in all its glory did: print a copy of a spec file, with group, summary and description looked up from specspo. This huge pile of junk was left behind from kicking out the useless "feature" in commits 7b95061d3b77d8e6b3c80e856b66f49b393511ba and 0f991a14209054da7c45c46e96750738fc62874d.
2010-10-28elfdeps: Fix version definitions processingAlexey Gladkov1-0/+1
The elfdeps doesn't parse the whole .gnu.version_d section. For example: $ readelf -V /lib/libbz2.so.1 | grep -A3 .gnu.version_d Version definition section '.gnu.version_d' contains 2 entries: Addr: 0x0000000000000884 Offset: 0x000884 Link: 4 (.dynstr) 000000: Rev: 1 Flags: BASE Index: 1 Cnt: 1 Name: libbz2.so.1 0x001c: Rev: 1 Flags: none Index: 2 Cnt: 1 Name: BZLIB_1.0 Before changes: $ echo /lib/libbz2.so.1.0.6 | /usr/lib/rpm/elfdeps -P libbz2.so.1 After changes: $ echo /lib/libbz2.so.1.0.6 | /usr/lib/rpm/elfdeps -P libbz2.so.1(BZLIB_1.0) libbz2.so.1 Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
2010-10-28Fix the remaining enum abuse over rpmParseState in librpmbuildPanu Matilainen3-5/+5
- rpmParseState uses might actually qualify for a true enum here but changing it would require changing half of librpmbuild and many of them mix the parse states, other error codes and whatnot in their types... just not worth the trouble, so use an int.
2010-10-28Now, make getStringBuf() return const char * for correctness sakePanu Matilainen2-2/+2
2010-10-28parseScript() const pedantryPanu Matilainen1-5/+5
- The string from getStringBuf() is not modified, so use a const variable for it, and a separate variable for the temporary line splitting for triggers
2010-10-28Use ARGV_t instead of stringbuf in changelog parsingPanu Matilainen1-6/+7
- addChangelog() is a bad boy and modifies the string it grabs from getStringBuf(), be clean about it and grab a copy through argvJoin() instead - addChangelog() would be better off walking and parsing over the argv directly instead of a joined string of it all, but leaving that exercise for some other rainy day
2010-10-28Use ARGV_t for temporary line storage directlyPanu Matilainen1-9/+3
- Similar to commit 1e3db59b568b1ff7f7e1f3285fc9b18567f2f2d6, no point using temporary string buffer when only end up splitting it into an argv for processing. Incidently this would've been a much less intrusive fix to RhBug:573339 than introducing a whole new argvSplitString() function... oh well. Take care not to introduce extra newlines in the process as argvSplitString() was eating them before - need to use appendStringBuf() for spec->prep now.
2010-10-28Pass the script to doScript() as const char *Panu Matilainen3-9/+16
- doScript() doesn't do anything special with the script buffer, this lets us use const for the argument.