diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-10-08 08:17:36 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-05 16:45:20 +0100 |
commit | 914597ced08140b6856f26dc23dff08828671c03 (patch) | |
tree | de2e4f67ad6d2e9562c66abc9d63843364dafe1e /URPM.pm | |
parent | a41735a478c797c81fe6035b4255a468ea36c6bd (diff) | |
download | perl-URPM-914597ced08140b6856f26dc23dff08828671c03.tar perl-URPM-914597ced08140b6856f26dc23dff08828671c03.tar.gz perl-URPM-914597ced08140b6856f26dc23dff08828671c03.tar.bz2 perl-URPM-914597ced08140b6856f26dc23dff08828671c03.tar.xz perl-URPM-914597ced08140b6856f26dc23dff08828671c03.zip |
"implement" create_transaction() in --env case (rule of least surprise)
(for rpmdrake --env)
Diffstat (limited to 'URPM.pm')
-rw-r--r-- | URPM.pm | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -184,6 +184,14 @@ sub traverse_tag_find { $urpm->traverse_tag($tag, [ $name ], $callback); } + +#- this is used when faking a URPM::DB: $urpm can be used as-a $db +#- (used for urpmi --env) +sub create_transaction { + my ($urpm) = @_; + die "Installing is not supported with a fake environment!"; +} + # wrapper around XS functions # it handles error cases sub _parse_hdlist_or_synthesis { |