SOURCES: rpmorphan-array_rc_opt.patch (NEW) - if there's a 'exclude' entry ...

sls sls at pld-linux.org
Sun Oct 19 07:50:59 CEST 2008


Author: sls                          Date: Sun Oct 19 05:50:59 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- if there's a 'exclude' entry in configuration file, rpmorphan fails
  with message:
  "Not a SCALAR reference at /usr/bin/rpmorphan-lib.pl line 379, <$fh_rc>
  line 41."

---- Files affected:
SOURCES:
   rpmorphan-array_rc_opt.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpmorphan-array_rc_opt.patch
diff -u /dev/null SOURCES/rpmorphan-array_rc_opt.patch:1.1
--- /dev/null	Sun Oct 19 07:51:00 2008
+++ SOURCES/rpmorphan-array_rc_opt.patch	Sun Oct 19 07:50:53 2008
@@ -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' );
================================================================


More information about the pld-cvs-commit mailing list