From efe344554de61cc9f4fa27f25cb60c0675fd37aa Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 30 Jan 2012 17:48:08 +0000 Subject: better fake package for URPM --- NEWS | 1 + fake_packages/URPM.pm | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) diff --git a/NEWS b/NEWS index 309a778..30a9932 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - parse .pm files too when generating fake packages +- update fake packages Version 1.2.12 - 20 September 2010, by Thierry Vignaud diff --git a/fake_packages/URPM.pm b/fake_packages/URPM.pm index d4553fd..e765e35 100644 --- a/fake_packages/URPM.pm +++ b/fake_packages/URPM.pm @@ -1,32 +1,142 @@ package URPM; our @ISA = qw(); +sub _add_group { my ($_groups, $_o_group) = @_ } +sub _add_rejected_backtrack { my ($_state, $_pkg, $_o_backtrack) = @_ } +sub _choose_best_pkg { my ($_urpm, $_pkg_installed, $_o_pkgs) = @_ } +sub _choose_best_pkg_ { my ($_urpm, $_pkg_installed, $_o_pkgs) = @_ } +sub _choose_bests_obsolete { my ($_urpm, $_db, $_pkg_installed, $_o_pkgs) = @_ } +sub _choose_required { my ($_urpm, $_db, $_state, $_dep, $_properties, $_choices, $_diff_provides, $_o_options) = @_ } +sub _compute_diff_provides_of_removed_pkg { my ($_urpm, $_state, $_diff_provides_h, $_o_p) = @_ } +sub _dep_to_name { my ($_urpm, $_o_dep) = @_ } +sub _find_packages_obsoleting { my ($_urpm, $_state, $_o_p) = @_ } +sub _find_required_package__kernel_source { my ($_urpm, $_db, $_o_choices) = @_ } +sub _find_required_package__kmod { my ($_urpm, $_db, $_o_choices) = @_ } +sub _find_required_package__sort { my ($_urpm, $_db, $_packages, $_o_provided_version) = @_ } +sub _get_tmp_dir() {} +sub _handle_conflict { my ($_urpm, $_state, $_pkg, $_p, $_property, $_reason, $_properties, $_diff_provides_h, $_o_keep) = @_ } +sub _handle_conflicts { my ($_urpm, $_db, $_state, $_pkg, $_properties, $_diff_provides_h, $_o_keep) = @_ } +sub _handle_conflicts_with_selected { my ($_urpm, $_db, $_state, $_pkg, $_dep, $_properties, $_diff_provides, $_o_options) = @_ } +sub _handle_diff_provides { my ($_urpm, $_db, $_state, $_properties, $_diff_provides, $_n, $_pkg, $_o_options) = @_ } +sub _id_to_name { my ($_urpm, $_o_id_prop) = @_ } +sub _ids_to_fullnames() {} +sub _ids_to_names() {} +sub _is_selected_or_installed { my ($_urpm, $_db, $_o_name) = @_ } +sub _merge_2_groups { my ($_groups, $_l1, $_o_l2) = @_ } +sub _no_more_recent_installed_and_providing { my ($_urpm, $_db, $_state, $_pkg, $_o_required) = @_ } +sub _parse_hdlist_or_synthesis { my ($_parse_func, $_urpm, $_file, $_o_options) = @_ } +sub _remove_all_rejected_from { my ($_state, $_o_from_fullname) = @_ } +sub _remove_rejected_from { my ($_state, $_fullname, $_o_from_fullname) = @_ } +sub _score_for_locales { my ($_urpm, $_db, $_o_pkg) = @_ } +sub _selected_size_filesize { my ($_urpm, $_state, $_o_compute_filesize) = @_ } +sub _set_flag_installed_and_upgrade_if_no_newer { my ($_db, $_o_pkg) = @_ } +sub _set_rejected_from { my ($_state, $_pkg, $_o_from_pkg) = @_ } +sub _set_rejected_old_package { my ($_state, $_pkg, $_o_new_pkg) = @_ } +sub _sort_by_dependencies__add_obsolete_edges { my ($_urpm, $_state, $_l, $_o_requires) = @_ } +sub _sort_by_dependencies_get_graph { my ($_urpm, $_state, $_o_l) = @_ } +sub _unselect_package_deprecated_by { my ($_urpm, $_db, $_state, $_diff_provides_h, $_o_pkg) = @_ } +sub _unselect_package_deprecated_by_property { my ($_urpm, $_db, $_state, $_pkg, $_diff_provides_h, $_n, $_o, $_o_v) = @_ } +sub add_macro { my ($_o_s) = @_ } sub add_macro_noexpand { my ($_macro) = @_ } sub archscore { my ($_arch) = @_ } +sub backtrack_selected { my ($_urpm, $_db, $_state, $_dep, $_diff_provides, $_o_options) = @_ } +sub backtrack_selected_psel_keep { my ($_urpm, $_db, $_state, $_psel, $_o_keep) = @_ } sub bind_rpm_textdomain_codeset() {} +sub build_base_files { my ($_urpm, $_o_options) = @_ } +sub build_hdlist { my ($_urpm, $_o_options) = @_ } +sub build_listid { my ($_urpm, $_start, $_end, $_o_listid) = @_ } +sub build_synthesis { my ($_urpm, $_o_options) = @_ } +sub build_transaction_set { my ($_urpm, $_db, $_state, $_o_options) = @_ } +sub check_graph_is_sorted { my ($_sorted, $_nodes, $_o_edges) = @_ } +sub compute_deps { my ($_urpm, $_o_options) = @_ } +sub compute_flag { my ($_urpm, $_pkg, $_o_options) = @_ } +sub compute_flags { my ($_urpm, $_val, $_o_options) = @_ } +sub compute_installed_flags { my ($_urpm, $_o_db) = @_ } sub del_macro { my ($_name) = @_ } +sub disable_selected { my ($_urpm, $_db, $_state, $_o_pkgs_todo) = @_ } +sub disable_selected_and_unrequested_dependencies { my ($_urpm, $_db, $_state, $_o_pkgs_todo) = @_ } sub expand { my ($_name) = @_ } +sub find(&@) {} +sub find_candidate_packages { my ($_urpm, $_id_prop, $_o_o_rejected) = @_ } +sub find_candidate_packages_ { my ($_urpm, $_id_prop, $_o_o_rejected) = @_ } +sub find_chosen_packages() {} +sub find_required_package { my ($_urpm, $_db, $_state, $_o_id_prop) = @_ } sub get_gpg_fingerprint { my ($_filename) = @_ } +sub get_installed_arch { my ($_db, $_o_n) = @_ } +sub import_needed_pubkeys() {} +sub import_needed_pubkeys_from_file { my ($_db, $_pubkey_file, $_o_o_callback) = @_ } sub import_pubkey { my (@_more_paras) = @_ } sub import_pubkey_file { my ($_db, $_filename) = @_ } +sub is_package_installed { my ($_db, $_o_pkg) = @_ } sub list_rpm_tag { my ($_o_urpm) = @_ } +sub listlength() {} sub loadmacrosfile { my ($_filename) = @_ } +sub make_delta_rpm() {} +sub min() {} +sub new { my ($_class, $_o_options) = @_ } sub osscore { my ($_os) = @_ } +sub packages_by_name { my ($_urpm, $_o_name) = @_ } +sub packages_obsoleting { my ($_urpm, $_o_name) = @_ } +sub packages_providing { my ($_urpm, $_o_name) = @_ } +sub packages_to_remove { my ($_o_state) = @_ } sub parse_hdlist { my ($_urpm, $_filename, @_more_paras) = @_ } +sub parse_hdlist__XS { my ($_urpm, $_filename, @_more_paras) = @_ } +sub parse_headers { my ($_urpm, $_o_options) = @_ } +sub parse_pubkeys { my ($_urpm, $_o_options) = @_ } +sub parse_pubkeys_ { my ($_o_db) = @_ } sub parse_rpm { my ($_urpm, $_filename, @_more_paras) = @_ } +sub parse_rpms_build_headers { my ($_urpm, $_o_options) = @_ } sub parse_synthesis { my ($_urpm, $_filename, @_more_paras) = @_ } +sub parse_synthesis__XS { my ($_urpm, $_filename, @_more_paras) = @_ } +sub pkg2media { my ($_mediums, $_o_p) = @_ } sub platformscore { my ($_platform) = @_ } +sub property2name() {} +sub property2name_op_version() {} +sub property2name_range() {} +sub provided_version_that_overlaps { my ($_pkg, $_o_provide_name) = @_ } +sub query_pkg { my ($_undef, $_pkg, $_o_query) = @_ } sub ranges_overlap { my ($_a, $_b, $_o_b_nopromote) = @_ } sub read_config_files() {} +sub removed_or_obsoleted_packages { my ($_o_state) = @_ } +sub request_packages_to_upgrade { my ($_urpm, $_db, $_state, $_requested, $_o_options) = @_ } sub resetmacros() {} +sub resolve_rejected { my ($_urpm, $_db, $_state, $_pkg, $_o_rdep) = @_ } +sub resolve_rejected_ { my ($_urpm, $_db, $_state, $_properties, $_o_rdep) = @_ } +sub resolve_requested { my ($_urpm, $_db, $_state, $_requested, $_o_options) = @_ } +sub resolve_requested__no_suggests { my ($_urpm, $_db, $_state, $_requested, $_o_options) = @_ } +sub resolve_requested__no_suggests_ { my ($_urpm, $_db, $_state, $_requested, $_o_options) = @_ } +sub reverse_multi_hash { my ($_o_h) = @_ } sub rpmErrorString() {} sub rpmErrorWriteTo { my ($_fd) = @_ } sub rpmvercmp { my ($_one, $_two) = @_ } +sub search { my ($_urpm, $_name, $_o_options) = @_ } +sub selected_size { my ($_urpm, $_o_state) = @_ } +sub selected_size_filesize { my ($_urpm, $_o_state) = @_ } sub setVerbosity { my ($_level) = @_ } +sub set_nofatal() {} +sub set_rejected { my ($_urpm, $_state, $_o_rdep) = @_ } +sub set_rejected_and_compute_diff_provides { my ($_urpm, $_state, $_diff_provides_h, $_o_rdep) = @_ } +sub sort_by_dependencies { my ($_urpm, $_state, $_o_list_unsorted) = @_ } +sub sort_graph { my ($_nodes, $_o_edges) = @_ } +sub sorted_rpms_to_string { my ($_urpm, $_o_sorted) = @_ } sub spec2srcheader { my ($_specfile) = @_ } sub stream2header { my ($_fp) = @_ } +sub strict_arch { my ($_o_urpm) = @_ } +sub strict_arch_check { my ($_installed_pkg, $_o_pkg) = @_ } +sub strict_arch_check_installed { my ($_db, $_o_pkg) = @_ } +sub tag2id { my ($_o_l) = @_ } +sub traverse { my ($_urpm, $_o_callback) = @_ } +sub traverse_tag { my ($_urpm, $_tag, $_names, $_o_callback) = @_ } +sub uniq() {} +sub unresolved_provides_clean { my ($_o_urpm) = @_ } +sub unsatisfied_requires { my ($_urpm, $_db, $_state, $_pkg, $_o_options) = @_ } sub verify_rpm { my ($_filename, @_more_paras) = @_ } sub verify_signature { my ($_filename, $_o_prefix) = @_ } +sub whatrequires { my ($_urpm, $_state, $_o_property_name) = @_ } +sub whatrequires_id { my ($_state, $_o_property_name) = @_ } +sub with_any_unsatisfied_requires { my ($_urpm, $_db, $_state, $_name, $_o_do) = @_ } +sub with_db_unsatisfied_requires { my ($_urpm, $_db, $_state, $_name, $_o_do) = @_ } +sub with_state_unsatisfied_requires { my ($_urpm, $_db, $_state, $_name, $_o_do) = @_ } package URPM::DB; our @ISA = qw(); @@ -51,6 +161,7 @@ sub buildtime { my ($_pkg) = @_ } sub changelog_name { my ($_pkg) = @_ } sub changelog_text { my ($_pkg) = @_ } sub changelog_time { my ($_pkg) = @_ } +sub changelogs { my ($_o_pkg) = @_ } sub compare { my ($_pkg, $_evr) = @_ } sub compare_pkg { my ($_lpkg, $_rpkg) = @_ } sub conf_files { my ($_pkg) = @_ } @@ -61,6 +172,7 @@ sub dirnames { my ($_pkg) = @_ } sub distepoch { my ($_pkg) = @_ } sub distribution { my ($_pkg) = @_ } sub disttag { my ($_pkg) = @_ } +sub dump_flags { my ($_o_pkg) = @_ } sub epoch { my ($_pkg) = @_ } sub excludearchs { my ($_pkg) = @_ } sub exclusivearchs { my ($_pkg) = @_ } @@ -96,6 +208,7 @@ sub header_filename { my ($_pkg) = @_ } sub id { my ($_pkg) = @_ } sub installtid { my ($_pkg) = @_ } sub is_arch_compat { my ($_pkg) = @_ } +sub is_arch_compat__XS { my ($_pkg) = @_ } sub is_platform_compat { my ($_pkg) = @_ } sub license { my ($_pkg) = @_ } sub name { my ($_pkg) = @_ } -- cgit v1.2.1