Commits

Palmer, 2E0EOL committed cbf421f

Use a -fallback, for key/values outside a section, but it looks like Debian Squeeze
does not yet support this. So we need a workaround

  • Participants
  • Parent commits 1873fa0

Comments (0)

Files changed (1)

 
 diff -r 6f13f90aaaee debian/control
 --- a/debian/control	Wed Feb 20 23:52:19 2013 +0000
-+++ b/debian/control	Thu Feb 21 21:09:00 2013 +0000
++++ b/debian/control	Thu Feb 21 21:12:21 2013 +0000
 @@ -11,7 +11,7 @@
  Depends: ${shlibs:Depends}, ${misc:Depends},
   libwww-perl,
  Description: Podcast downloader and management system
 diff -r 6f13f90aaaee dlpodget
 --- a/dlpodget	Wed Feb 20 23:52:19 2013 +0000
-+++ b/dlpodget	Thu Feb 21 21:09:00 2013 +0000
++++ b/dlpodget	Thu Feb 21 21:12:21 2013 +0000
 @@ -34,7 +34,7 @@
  use LWP::UserAgent;
  use XML::Feed;
  	my @confFiles = (
  		'dlpodget.rc',
  		"$ENV{HOME}/.dlpodget.rc"
-@@ -186,17 +185,17 @@
+@@ -186,17 +185,20 @@
  	$Debug = 1 if ( $opts{'d'} );
  	print(STDERR "Explicit debug mode enabled by -d\n") if ( $Debug );
  
 -			$conf->Reload();
 -			$confSeen++;
 -			last;
-+		$conf = Config::IniFiles->new( -file => $confFile, -commentchar => ';', -default => '_main' );
++		$conf = Config::IniFiles->new(
++			-file => $confFile, -commentchar => ';',
++			-fallback => '_main'
++		);
 +		if ( !$conf ) {
 +			print(STDERR "Fault with $confFile: " . join(',', @Config::IniFiles::errors) . "\n");
 +			return 1;