summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-11 08:36:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-11 08:36:20 +0000
commitae536803ad1098062690ebc5fbcc9ac5c21049af (patch)
tree832adb45b1ab155901d0059d17f5c36bb95bd547
parent2c3833e87dfe5da63e9f6203d450a572d93b2dcc (diff)
downloadurpmi-ae536803ad1098062690ebc5fbcc9ac5c21049af.tar
urpmi-ae536803ad1098062690ebc5fbcc9ac5c21049af.tar.gz
urpmi-ae536803ad1098062690ebc5fbcc9ac5c21049af.tar.bz2
urpmi-ae536803ad1098062690ebc5fbcc9ac5c21049af.tar.xz
urpmi-ae536803ad1098062690ebc5fbcc9ac5c21049af.zip
add some doc
-rw-r--r--urpm.pm17
1 files changed, 17 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index d33dede5..f2aa77fe 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -292,6 +292,23 @@ urpm - Mandriva perl tools to handle the urpmi database
C<urpm> is used by urpmi executables to manipulate packages and media
on a Mandriva 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 C<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_hdlist => string,
+ hdlist => bool|string, synthesis => bool,
+ removable => string, downloader => string,
+ ignore => bool, update => bool, modified => bool, really_modified => bool } ],
+
=head1 SEE ALSO
The C<URPM> package is used to manipulate at a lower level hdlist and rpm