diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-01 10:53:07 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-01 10:53:07 +0000 |
commit | e7680509b66f204cdb2e3925d333f07746dc4c36 (patch) | |
tree | 952b1c8d1e0fca5d9e7deaed288152d6ada4bc24 /urpm.pm | |
parent | d99173d6e61042d0ba9c4a6372c9e2a47d3bf942 (diff) | |
download | urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar.gz urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar.bz2 urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.tar.xz urpmi-e7680509b66f204cdb2e3925d333f07746dc4c36.zip |
create db_open_or_die_() and use it
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -224,6 +224,12 @@ sub is_cdrom_url { protocol_from_url($url) eq 'cdrom'; } +sub db_open_or_die_ { + my ($urpm, $b_write_perm) = @_; + db_open_or_die($urpm, $urpm->{root}, $b_write_perm); +} + +# please use higher level function db_open_or_die_() sub db_open_or_die { my ($urpm, $root, $b_write_perm) = @_; |