[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#592117: debbugsconfig fails due to missing /etc/debbugs/indices/ directory



Package: debbugs
Version: 2.4.2~exp1
Severity: normal
Tags: patch

Hi there,  I rebuilt the packages from experimental on my testing system, but
it looks like this problem may exist in previous versions as well.  We doing a
fresh install of debbugs and running debbugsconfig for the first time, it dies
while trying to copy the /usr/share/doc/debbugs/examples/sources file to
/etc/debbugs/indices/ since that directory does not exist.  This stops
debbugsconfig from running to completion.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debbugs depends on:
ii  exim4                         4.72-1     metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [mail-tran 4.72-1     lightweight Exim MTA (v4) daemon
ii  libdebbugs-perl               2.4.2~exp1 modules used by the active Debian 
ii  perl                          5.10.1-13  Larry Wall's Practical Extraction 

Versions of packages debbugs recommends:
ii  debbugs-web                   2.4.2~exp1 web scripts for the active Debian 

Versions of packages debbugs suggests:
pn  libcgi-alert-perl             <none>     (no description available)
pn  spamassassin                  <none>     (no description available)

-- no debconf information
=== modified file 'debian/debbugsconfig'
--- debian/debbugsconfig	2005-01-16 22:27:09 +0000
+++ debian/debbugsconfig	2010-08-07 16:03:35 +0000
@@ -79,6 +79,10 @@
 sub template {
   my ($name, $destdir) = @_;
   if (! -f "$destdir/$name") {
+  if (! -d $destdir ) {
+    File::Path::make_path($destdir, {'mode' => 0755 });
+    print "created $destdir/.\n";
+  }
   system("cp /usr/share/doc/debbugs/examples/$name $destdir/$name") == 0 ||
 	die "$!";
   print "created $destdir/$name from template.\n";


Reply to: