diff options
author | Francois Pons <fpons@mandriva.com> | 2002-06-04 17:28:18 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-06-04 17:28:18 +0000 |
commit | d201040ec77822f96a4a1cd6f9ba8cc424161376 (patch) | |
tree | c2b524de5560ffad3bd4fd3dbd66fa7e9f6ab7b1 /urpmq | |
parent | 3b62bd8fb954b440c1c85c8f33c665d247c6d029 (diff) | |
download | urpmi-d201040ec77822f96a4a1cd6f9ba8cc424161376.tar urpmi-d201040ec77822f96a4a1cd6f9ba8cc424161376.tar.gz urpmi-d201040ec77822f96a4a1cd6f9ba8cc424161376.tar.bz2 urpmi-d201040ec77822f96a4a1cd6f9ba8cc424161376.tar.xz urpmi-d201040ec77822f96a4a1cd6f9ba8cc424161376.zip |
big move to perl-URPM, a lot of problem still exists
enhanced algorithms must be done too.
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 24 |
1 files changed, 5 insertions, 19 deletions
@@ -113,25 +113,11 @@ for (@ARGV) { #- remove verbose if not asked. $query->{verbose} or $urpm->{log} = sub {}; -$urpm->read_config(nocheck_access => 1); -if ($query->{media}) { - $urpm->select_media(split ',', $query->{media}); - foreach (grep { !$_->{modified} } @{$urpm->{media} || []}) { - #- this is only a local ignore that will not be saved. - $_->{ignore} = 1; - } -} -foreach (grep { !$_->{ignore} && (!$query->{update} || $_->{update}) } @{$urpm->{media} || []}) { - $urpm->parse_synthesis($_); -} - -if (@files) { - #- build closure with local package and return list of names. - push @names, $urpm->register_local_packages(@files); -} - -#- relocate depslist. -$urpm->relocate_depslist_provides(); +$urpm->configure(nocheck_access => 1, + media => $query->{media}, + update => $query->{update} + @files > 0 ? (files => [ @files ]) : (), + ); #- search the packages according the selection given by the user, #- basesystem is added to the list so if it need to be upgraded, all its dependency |