aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2009-01-12 07:56:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2009-01-12 07:56:19 +0000
commiteb878228b6a28e9d6c1fb87022d38ce4c417dc43 (patch)
treec3434a3b7258929ed4dbd61a4e0ef95ad3c6c3b6
parentda305c378e3f5ccf50d75a7bf2fc05abfe0f2883 (diff)
downloadperl-URPM-eb878228b6a28e9d6c1fb87022d38ce4c417dc43.tar
perl-URPM-eb878228b6a28e9d6c1fb87022d38ce4c417dc43.tar.gz
perl-URPM-eb878228b6a28e9d6c1fb87022d38ce4c417dc43.tar.bz2
perl-URPM-eb878228b6a28e9d6c1fb87022d38ce4c417dc43.tar.xz
perl-URPM-eb878228b6a28e9d6c1fb87022d38ce4c417dc43.zip
- drop function fuzzy_parse() (it is unused)
- add some comment
-rw-r--r--URPM/Build.pm25
1 files changed, 2 insertions, 23 deletions
diff --git a/URPM/Build.pm b/URPM/Build.pm
index 650657b..a080023 100644
--- a/URPM/Build.pm
+++ b/URPM/Build.pm
@@ -10,6 +10,8 @@ sub _get_tmp_dir () {
"$t/.build_hdlist";
}
+# DEPRECATED. ONLY USED BY MKCD
+#
#- prepare build of an hdlist from a list of files.
#- it can be used to start computing depslist.
#- parameters are :
@@ -156,29 +158,6 @@ sub parse_rpms {
) ? ($start, $end) : ();
}
-# fuzzy_parse is a simple wrapper for parse_rpm* function
-# It detect if the file passed is a dir, an hdlist, a synthesis or a rpm
-# it call the good function.
-sub fuzzy_parse {
- my ($urpm, %options) = @_;
- my ($start, $end);
- foreach my $entry (@{$options{paths} || []}) {
- if (-d $entry) { # it is a dir
- ($start, $end) = $urpm->parse_rpms([ glob("$entry/*.rpm") ], %options);
- defined ($start) and return ($start .. $end);
- } else { # we try some methode to load the file
- ($start, $end) = $urpm->parse_hdlist($entry);
- defined ($start) and return ($start .. $end);
-
- ($start, $end) = $urpm->parse_synthesis($entry);
- defined ($start) and return ($start .. $end);
-
- ($start, $end) = $urpm->parse_rpms([ $entry ], %options);
- defined ($start) and return ($start .. $end);
- }
- }
- return ();
-}
# DEPRECATED. ONLY USED BY MKCD
#- compute dependencies, result in stored in info values of urpm.