26 |
use URPM; |
use URPM; |
27 |
use URPM::Resolve; |
use URPM::Resolve; |
28 |
|
|
29 |
|
|
30 |
|
=head1 NAME |
31 |
|
|
32 |
|
urpm - Mageia perl tools to handle the urpmi database |
33 |
|
|
34 |
|
=head1 DESCRIPTION |
35 |
|
|
36 |
|
C<urpm> is used by urpmi executables to manipulate packages and media |
37 |
|
on a Mageia Linux distribution. |
38 |
|
|
39 |
|
=head2 The urpm class |
40 |
|
|
41 |
|
=over 4 |
42 |
|
|
43 |
|
=cut |
44 |
|
|
45 |
#- this violently overrides is_arch_compat() to always return true. |
#- this violently overrides is_arch_compat() to always return true. |
46 |
sub shunt_ignorearch { |
sub shunt_ignorearch { |
47 |
eval q( sub URPM::Package::is_arch_compat { 1 } ); |
eval q( sub URPM::Package::is_arch_compat { 1 } ); |
63 |
}; |
}; |
64 |
} |
} |
65 |
|
|
66 |
#- create a new urpm object. |
=item urpm->new() |
67 |
|
|
68 |
|
The constructor creates a new urpm object. It's a blessed hash that |
69 |
|
contains fields from L<URPM>, and also the following fields: |
70 |
|
|
71 |
|
B<source>: { id => src_rpm_file|spec_file } |
72 |
|
|
73 |
|
B<media>: [ { |
74 |
|
start => int, end => int, name => string, url => string, |
75 |
|
virtual => bool, media_info_dir => string, with_synthesis => string, |
76 |
|
no-media-info => bool, |
77 |
|
iso => string, downloader => string, |
78 |
|
ignore => bool, update => bool, modified => bool, really_modified => bool, |
79 |
|
unknown_media_info => bool, |
80 |
|
} ], |
81 |
|
|
82 |
|
=cut |
83 |
|
|
84 |
sub new { |
sub new { |
85 |
my ($class) = @_; |
my ($class) = @_; |
86 |
my $self; |
my $self; |
501 |
|
|
502 |
__END__ |
__END__ |
503 |
|
|
|
=head1 NAME |
|
|
|
|
|
urpm - Mageia perl tools to handle the urpmi database |
|
|
|
|
|
=head1 DESCRIPTION |
|
|
|
|
|
C<urpm> is used by urpmi executables to manipulate packages and media |
|
|
on a Mageia Linux distribution. |
|
|
|
|
|
=head2 The urpm class |
|
|
|
|
|
=over 4 |
|
|
|
|
|
=item urpm->new() |
|
|
|
|
|
The constructor creates a new urpm object. It's a blessed hash that |
|
|
contains fields from L<URPM>, and also the following fields: |
|
|
|
|
|
B<source>: { id => src_rpm_file|spec_file } |
|
|
|
|
|
B<media>: [ { |
|
|
start => int, end => int, name => string, url => string, |
|
|
virtual => bool, media_info_dir => string, with_synthesis => string, |
|
|
no-media-info => bool, |
|
|
iso => string, downloader => string, |
|
|
ignore => bool, update => bool, modified => bool, really_modified => bool, |
|
|
unknown_media_info => bool, |
|
|
} ], |
|
|
|
|
504 |
=back |
=back |
505 |
|
|
506 |
=head1 SEE ALSO |
=head1 SEE ALSO |