Panu Matilainen
dccc08ab66
Make rpmLeadCheck() return error msg instead of direct logging
...
- allows silent checking of lead and differentiating between
non-rpm files and incompatible rpms, avoiding bogus "not an rpm package"
message on manifests
2008-03-31 12:07:37 +03:00
Panu Matilainen
7ddab3ab8d
Dead code removal (macro stuff)
2008-03-31 10:44:23 +03:00
Panu Matilainen
802900a230
Dead code removal (popt switches)
2008-03-31 10:41:07 +03:00
Panu Matilainen
33b3da3ec1
Simplify rpmdsThis() code
...
- use rasprintf() to construct [e:]v-r string instead of stpcpy games
- use str2hge() for N + EVR
2008-03-31 09:56:24 +03:00
Panu Matilainen
58afc25abb
Copy N + EVR into ds in rpmdsSingle() instead of just referring
...
- previously a ds created by rpmdsSingle() would turn invalid as soon as
the N and EVR strings were freed by caller (or went out of scope), ick
- convert the N + EVR strings passed to rpmdsSingle() to similar construct
as is returned by headerGetEntry so headerFreeData will free both the
pointers + contents.
2008-03-31 09:25:18 +03:00
Panu Matilainen
ed07bf20d3
Bunch of formatting & indentation fixes to rpmds
2008-03-31 08:42:33 +03:00
Panu Matilainen
de4c3a999f
Fixup for rpmfcSaveArg() no longer freeing key
2008-03-29 15:22:45 +02:00
Jindrich Novy
6cdf14e01d
Don't use static buffer ptr as return value in doUntar()
2008-03-29 11:18:30 +01:00
Jindrich Novy
6dfb63cd59
Don't use static buffer in rpmfcELF(), make code more comprehensive
2008-03-28 17:49:56 +01:00
Jindrich Novy
7ff4c18275
Remove unneeded buffer operations
2008-03-28 17:21:47 +01:00
Jindrich Novy
813ab8ca8e
Add rpmfcAddFileDep() to handle file dependencies securely
2008-03-28 16:15:48 +01:00
Panu Matilainen
21fee2eb61
Simplify changelog entry additions
2008-03-26 16:32:30 +02:00
Jindrich Novy
9c05a57f23
Remove unneeded free()
2008-03-26 11:52:07 +01:00
Jindrich Novy
e27f6c2bfc
Use rasprintf() in rpmfcHelper() and rpmfcGenerateDepends()
2008-03-26 09:21:30 +01:00
Jindrich Novy
6a7ef512e2
Don't use static buffers to communicate between funcs, avoid buffer overflows.
2008-03-25 17:42:27 +01:00
Jindrich Novy
087c90bfe6
Use rasprintf() for NVR construction to remove BUFSIZ limit.
2008-03-25 17:42:27 +01:00
Jindrich Novy
721933384e
Avoid artificial limits on tag name.
2008-03-25 17:42:27 +01:00
Panu Matilainen
5a684f5527
Disable signature and digest checks on query modes (rhbz#438625)
2008-03-25 07:49:47 +02:00
Panu Matilainen
3e76c5767a
Avoid couple of static buffers in psm script functions
2008-03-24 23:58:43 +02:00
Panu Matilainen
2a909bdd02
Avoid static buffer for sql commands
2008-03-24 23:47:41 +02:00
Panu Matilainen
e501ac2e77
Remove bogus const from rpmRelocation struct
2008-03-24 22:42:34 +02:00
Panu Matilainen
3e57c865c5
Remove bogus consts from rpmte_s
2008-03-24 22:25:26 +02:00
Panu Matilainen
a600230b7d
Revert rpmhash changes from previous commit
...
- rpmhash key + data actually sometimes point to const data.. pff
2008-03-24 22:23:01 +02:00
Panu Matilainen
b43b6d6df1
Remove bogus consts from rpmdb and dbi structs
2008-03-24 22:13:45 +02:00
Panu Matilainen
9a4a5c9ef8
Remove bogus consts from pgpDigParams_s structure
2008-03-24 21:05:05 +02:00
Panu Matilainen
e1e66978a1
Remove bogus consts from urlinfo_s structure
2008-03-24 20:44:48 +02:00
Panu Matilainen
c4659498e3
Eliminate bogus const's from spec structure
2008-03-24 19:03:20 +02:00
Panu Matilainen
2cf64e95f2
Eliminate bogus const's from OFI_t and spectags structs
2008-03-24 19:03:00 +02:00
Panu Matilainen
4110664044
Eliminate bogus const from expression value
2008-03-24 19:02:44 +02:00
Panu Matilainen
fa7e15c2ab
Use regular stream functions instead of rpmio in spec sanity check
2008-03-24 19:01:29 +02:00
Panu Matilainen
f35277c8a7
Eliminate wtf pointer games with rpmGetPath result.
2008-03-24 19:01:12 +02:00
Panu Matilainen
7ae38cdd44
Avoid entirely silly rpmio use in addFileToTagAux()
2008-03-24 19:00:48 +02:00
Jindrich Novy
3531bc5d8c
Fix buffer overflow while creating patch script, avoid fixed sized buffers.
2008-03-23 13:51:53 +01:00
Jindrich Novy
a3ceec504b
Use rasprintf() to prevent overflows and remove BUFSIZ buffer limit.
2008-03-23 13:50:07 +01:00
Jindrich Novy
ca6f318f7a
Fix writeRPM, use dynamic allocation, remove bogus const.
2008-03-23 13:48:49 +01:00
Panu Matilainen
f779b62276
Adjust maintainer makefile for hg -> git switchover
2008-03-20 10:59:17 +02:00
Panu Matilainen
53bc909971
Remove bunch of double consts. What have I've been thinking?
2008-03-19 09:30:33 +02:00
Panu Matilainen
5c7cccd3b6
Erm, off-by-one in rasprintf()
...
- should probably change the comment to "simple, stupid and buggy" ;)
2008-03-18 13:22:15 +02:00
Panu Matilainen
d07bcfece1
Bump up sonames, we're not exactly ABI compatible with 4.4 anymore..
2008-03-18 10:28:57 +02:00
Panu Matilainen
5c48f597c8
Use rasprintf() in rpmps to properly fix mdvbz#31680
2008-03-18 10:18:08 +02:00
Panu Matilainen
053cf9a25e
Add custom asprintf() clone to rpmstring
2008-03-18 10:17:03 +02:00
Panu Matilainen
c908277be2
Minimal namespacing for locale-insensitive x*() string functions
2008-03-18 09:10:13 +02:00
Panu Matilainen
9df54a8622
More xstr[n]casecmp to rpmstring along the other string-stuff...
2008-03-18 08:55:05 +02:00
Panu Matilainen
5cde7cac96
Refactor running of pre/post scriptlets out of rpmtsRun()
2008-03-17 16:03:51 +02:00
Panu Matilainen
5dca5fac8f
Add missing popt include
2008-03-17 15:48:25 +02:00
Panu Matilainen
d9c780d19e
Remove rollback and repackage from documentation
2008-03-17 14:36:43 +02:00
Panu Matilainen
db37b74a2b
Nuke leftover rollback test program, update translations
2008-03-17 14:27:03 +02:00
Panu Matilainen
d89482a7c7
Remove repackage support to finish off with rollback
...
The two main classes of rollback/repackage need are
1) Gimme back the previous version, this broke XYZ on my system.
This is better handled by downgrading to the previous version of original
package instead of repackaged garbage. We should maintain real package
(version) history somewhere.
2) Upgrade messed up my configuration.
Instead of repackaging everything we could be far more intelligent
wrt config files, stick them into real version control or at least have
hooks to do so.
RPMCALLBACK_REPACKAGE_* and RPMTRANS_FLAG_REPACKAGE definitions left around
to avoid needlessly breaking everybodys callbacks (for now)
2008-03-17 14:10:11 +02:00
Panu Matilainen
37543ee040
Remove rollback support
...
- not possible to do reliably within rpm
- effort is better wasted on investigating fs-level snapshots, which
is way beyond rpm scope except for hooks to interact with the snapshot
mechanism to communicate beginning/end of transaction and such
2008-03-17 11:53:27 +02:00
Panu Matilainen
ed78cef2c3
Remove support for automatic rollback on failure
...
- 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-17 12:04:39 +02:00