]> git.pld-linux.org Git - packages/rpmorphan.git/commitdiff
- if there's a 'exclude' entry in configuration file, rpmorphan fails
authorSzymon Siwek <sls@pld-linux.org>
Sun, 19 Oct 2008 05:50:53 +0000 (05:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  with message:
  "Not a SCALAR reference at /usr/bin/rpmorphan-lib.pl line 379, <$fh_rc>
  line 41."

Changed files:
    rpmorphan-array_rc_opt.patch -> 1.1

rpmorphan-array_rc_opt.patch [new file with mode: 0644]

diff --git a/rpmorphan-array_rc_opt.patch b/rpmorphan-array_rc_opt.patch
new file mode 100644 (file)
index 0000000..5bab314
--- /dev/null
@@ -0,0 +1,15 @@
+--- rpmorphan-1.2/rpmorphan-lib.pl.orig        2008-10-18 23:04:57.476685358 +0200
++++ rpmorphan-1.2/rpmorphan-lib.pl     2008-10-18 23:05:06.976032491 +0200
+@@ -376,7 +376,11 @@
+               my ( $key, $value ) = split /\s*=\s*/, $_, 2;
+               if ( defined $key ) {
+                       if ( exists $rh_list->{$key} ) {
+-                              ${ $rh_list->{$key} } = $value;
++                              if (ref($rh_list->{$key}) eq 'ARRAY') {
++                                      @{ $rh_list->{$key} } = get_from_command_line($value);
++                              } else {
++                                      ${ $rh_list->{$key} } = $value;
++                              }
+                               # special case : verbose will modify immediately behavior
+                               init_debug($value) if ( $key eq 'verbose' );
This page took 0.071006 seconds and 4 git commands to generate.