aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
Commit message (Collapse)AuthorAgeFilesLines
* (ranges_overlap,obsoletes_overlap) drop unused no_promote parameterThierry Vignaud2012-06-151-11/+7
| | | | | | | | rationale: it was never set to 0 for nearly a decade this should have been ripped rigth after commit r227323 by pixel on Sep 7 2007: "simplify: nopromoteepoch is always 1 (no caller ever define it)"
* (return_list_uint_16) rename as return_list_number()Thierry Vignaud2012-06-151-24/+8
| | | | | | | | rationale: rpmtdGetNumber() works for every kind of numeric container (RPM_NUMERIC_CLASS) regardless of its internal presentation (8/16/32/64-bit integer) (return_list_uint32_t) drop it as it's now useless
* (Db_traverse_tag) simplifyThierry Vignaud2012-06-151-3/+1
|
* simplify using RPMTAG_NVRThierry Vignaud2012-06-151-19/+12
|
* (return_files) fix a compiler warningThierry Vignaud2012-06-151-1/+1
|
* (return_list_tag,update_obsoletes,update_provides) use proper accessorsThierry Vignaud2012-06-151-7/+5
|
* (return_files) fix RPMTAG_OLDFILENAMES caseThierry Vignaud2012-06-151-1/+2
| | | | | | | | | | | was broken since commit r250325 by pixel on Tue Dec 9 2008 +0000: "- adapt to rpm 4.6 changes: headerGetEntry -> headerGet" previously count was initialized the right way this show it's unused since it's broken for 4 years this is a theoric issues since RPMTAG_(BASENAMES|DIRINDEXES|_DIRNAMES) date from 1999...
* (update_provides_files) fix support for RPMTAG_OLDFILENAMESThierry Vignaud2012-06-141-6/+6
| | | | | | | | | it is broken since commit r250325 by pixel on Tue Dec 9 2008 (4 years!!!): "- adapt to rpm 4.6 changes: headerGetEntry -> headerGet" previously 'list' was initialized the right way note: still needed for the testsuite
* (return_files) use proper accessors in the RPMTAG_OLDFILENAMES caseThierry Vignaud2012-06-141-4/+3
|
* (return_files) use proper API for freeing memoryThierry Vignaud2012-06-141-4/+6
|
* (_run_cb_while_traversing) introduce this helperThierry Vignaud2012-06-141-42/+21
|
* (_header_free) introduce this helper in order to simplifyThierry Vignaud2012-06-141-5/+10
|
* (get_fullname_parts) fix a very old segfault in unused codeThierry Vignaud2012-06-141-0/+2
| | | | | rationale: .info is set only if filled by pack_header() from header tags or by parse_line() (from a synthesis)
* (return_list_tag_modifier) use proper accessorsThierry Vignaud2012-06-131-13/+17
|
* (return_files) simplifyThierry Vignaud2012-06-131-1/+1
|
* style: fix whitespace at end of some linesThierry Vignaud2012-06-131-2/+2
|
* style: put block at line after if ()Thierry Vignaud2012-06-131-5/+21
|
* style: put single statement at line after if ()Thierry Vignaud2012-06-131-5/+10
|
* style: put return at line after if ()Thierry Vignaud2012-06-131-9/+18
|
* (return_list_tag) use proper accessorsThierry Vignaud2012-06-131-7/+7
|
* (return_list_tag) preallocate the stackThierry Vignaud2012-06-131-3/+6
|
* (fullname,expand) simplify using mPUSHs()Thierry Vignaud2012-06-131-9/+9
|
* (return_list_tag, Pkg_id) styleThierry Vignaud2012-06-131-9/+4
|
* (pack_header) constify some local variablesThierry Vignaud2012-06-131-5/+5
|
* constify some functions argsThierry Vignaud2012-06-131-17/+17
|
* simplify: newSVpv(foobar, 0) -> newSVpvs(foobar)Thierry Vignaud2012-06-131-10/+10
|
* tag some internal functions as static (saves another 1% of code)Thierry Vignaud2012-06-131-8/+8
|
* (return_list_int32_t) rename as return_list_uint32_t():Thierry Vignaud2012-06-131-7/+7
| | | | we return the result of rpmtdNextUint32() :-)
* (return_list_tag) report about unknown tags (also silent compiler btw)Thierry Vignaud2012-06-131-0/+3
|
* use proper rpm typesThierry Vignaud2012-06-131-27/+30
|
* (rpmtag_from_string) make it staticThierry Vignaud2012-06-131-1/+1
|
* (Db_create_transaction) remove 'prefix' paremter which is unused for 9 years,Thierry Vignaud2012-06-131-2/+1
| | | | | | | since commit r11141 by fpons on Apr 29 2003: "first try of 4.2 compatible perl-URPM" warning: this break compatibility with urpmi!
* (return_list_tag_modifier) simplifyThierry Vignaud2012-06-131-4/+2
|
* silence some compiler warningsThierry Vignaud2012-06-131-4/+4
|
* (spec2srcheader) kill useless defineThierry Vignaud2012-06-131-2/+0
|
* (Pkg_distepoch) drop it (never worked on rpm.org, never used)Thierry Vignaud2012-06-131-12/+0
|
* alias Trans->Element*()Thierry Vignaud2012-06-131-43/+19
| | | | | | alias *score() functions (further 2% code saving)
* (provides_overlap) alias it with obsoletes_overlapThierry Vignaud2012-06-131-39/+16
| | | | (saves another 1.1% of code size)
* fix importing pubkeys with rpm-4.10.0 (eg: when adding media)Thierry Vignaud2012-06-111-5/+11
| | | | | | | | | | | | | | | | | | (ts_nosignature) return old values of ts->vsflags (Db_traverse,Db_traverse_tag,Db_traverse_tag_find) restore previous ts->vsflags issue introduced in commit r22930 by nanardon on Mar 1 2007: "- make read_config_files() the load error code - URPM::read_config_files return success true/false - load config file at module load - the config is tagged as load only in case of success, so reloading after error will retry anyway" looks like an optimisation silently added with that commit for faster DB traversing; up to rpm-4.9.x, this was OK, but rpm-4.10.0 now refuses to load the keyring if signature checking is disabled, which fails importing the key
* (import_pubkey) drop it (this function is dead for 5 years)Thierry Vignaud2012-06-111-9/+0
|
* alias many flags setters (16% code saved with previous commit)Thierry Vignaud2012-06-081-68/+20
|
* alias many flags accessors in order to save codeThierry Vignaud2012-06-081-49/+18
|
* alias many simple accessors in order to save code space (10% saved)Thierry Vignaud2012-06-081-238/+113
|
* drop support for rpm-4.8.xThierry Vignaud2012-06-081-44/+0
|
* (platformscore) kill unimplemented functionThierry Vignaud2012-06-081-11/+0
| | | | | (dead since commit r232405 by pixel on Dec 10 2007: "introduce some compatibility code with rpm.org")
* (list_rpm_tag) kill unimplemented functionThierry Vignaud2012-06-081-6/+0
| | | | | (dead since commit r250318 from pixel on Dec 9 2008: "- drop list_rpm_tag()")
* (is_platform_compat) kill unimplemented function (dead since switch toThierry Vignaud2012-06-081-13/+0
| | | | rpm.org in 2007)
* (update_header, add, parse_hdlist__XS, parse_rpm) kill compatabilityThierry Vignaud2012-06-081-16/+4
| | | | mode with an interface dead since December 2002
* kill unused PROMOTE_EPOCH_SENSEThierry Vignaud2012-06-081-5/+0
|
* (get_arch) introduce this new helper in order to simplify the codeThierry Vignaud2012-06-081-7/+12
|