diff options
-rw-r--r-- | urpm.pm | 56 |
1 files changed, 3 insertions, 53 deletions
@@ -3219,56 +3219,6 @@ __END__ urpm - Mandrakesoft perl tools to handle the urpmi database -=head1 SYNOPSYS - - require urpm; - - my $urpm = new urpm; - $urpm->read_config(); - $urpm->add_medium('medium_ftp', - 'ftp://ftp.mirror/pub/linux/distributions/mandrake-devel/cooker/i586/media/main', - 'synthesis.hdlist.cz', - update => 0); - $urpm->add_distrib_media('stable', 'removable://mnt/cdrom', - update => 1); - $urpm->select_media('contrib', 'update'); - $urpm->update_media(%options); - $urpm->write_config(); - - my $urpm = new urpm; - $urpm->read_config(nocheck_access => $uid > 0); - foreach (grep { !$_->{ignore} } @{$urpm->{media} || []}) { - $urpm->parse_synthesis($_); - } - if (@files) { - push @names, $urpm->register_rpms(@files); - } - - my %packages; - @names and $urpm->search_packages(\%packages, [ @names], - use_provides => 1); - if ($auto_select) { - my (%to_remove, %keep_files); - - $urpm->select_packages_to_upgrade('', \%packages, - \%to_remove, \%keep_files, - use_parsehdlist => $complete); - } - $urpm->filter_packages_to_upgrade(\%packages, - $ask_choice); - $urpm->deselect_unwanted_packages(\%packages); - - my ($local_sources, $list) = $urpm->get_source_packages(\%packages); - my %sources = $urpm->download_source_packages($local_sources, - $list, - 'force_local', - $ask_medium_change); - my @rpms_install = grep { $_ !~ /\.src.\.rpm/ } values %{ - $urpm->extract_packages_to_install(\%sources) - || {}}; - my @rpms_upgrade = grep { $_ !~ /\.src.\.rpm/ } values %sources; - - =head1 DESCRIPTION C<urpm> is used by urpmi executables to manipulate packages and media @@ -3276,12 +3226,12 @@ on a Mandrakelinux distribution. =head1 SEE ALSO -perl-URPM (obsolete rpmtools) package is used to manipulate at a lower -level hdlist and rpm files. +The perl-URPM package is used to manipulate at a lower level hdlist and rpm +files. =head1 COPYRIGHT -Copyright (C) 2000-2004 Mandrakesoft <fpons@mandrakesoft.com> +Copyright (C) 2000-2004 Mandrakesoft This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by |