Your message dated Sun, 18 Dec 2005 18:17:59 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bugs fixed in switchconf 0.0.5.1-1 release
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 9 Oct 2005 13:54:38 +0000
>From [EMAIL PROTECTED] Sun Oct 09 06:54:38 2005
Return-path: <[EMAIL PROTECTED]>
Received: from au113-1-82-235-203-188.fbx.proxad.net (vectra.maison.bogus) 
[82.235.203.188] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1EObdO-000139-00; Sun, 09 Oct 2005 06:54:38 -0700
Received: from acer.maison.bogus ([192.168.0.168])
        by vectra.maison.bogus with esmtp (Exim 4.50)
        id 1EObdM-0000fA-Us; Sun, 09 Oct 2005 15:54:36 +0200
Received: from rousseau by acer.maison.bogus with local (Exim 4.52)
        id 1EObdM-0002we-2A; Sun, 09 Oct 2005 15:54:36 +0200
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Ludovic Rousseau <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: sort the files in /etc/switchconf/{before,after}.d before execution
X-Mailer: reportbug 3.17
Date: Sun, 09 Oct 2005 15:54:35 +0200
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: switchconf
Version: 0.0.4-1
Severity: important
Tags: patch

The scripts present in /etc/switchconf/before.d/ and
/etc/switchconf/after.d/ are executed in the order they are present in
the directory structure (more or less random in fact). This is very
annoying since you can't tell that you want to execure foo before bar.

I propose to sort the files so you can have:
$ ls -1 /etc/switchconf/before.d/
10ifdown.sh
20pcmcia.sh

and 10ifdown.sh will always be executed before 20pcmcia.sh

I propose the patch (just add "| sort"):

 # executing each scripts before
-for r in `find ${conf_top_dirs}/${exec_dir_before} -type f -perm +1`; do
+for r in `find ${conf_top_dirs}/${exec_dir_before} -type f -perm +1 | sort`; do
     echo -n "Executing $r .. ";
     echo "------------- Executing $r -----------------" >> ${logfile}
     ${r} 2>&1 >> ${logfile}
@@ -65,7 +66,7 @@
 done
 
 # executing each scripts after
-for r in `find ${conf_top_dirs}/${exec_dir_after} -type f -perm +1`; do
+for r in `find ${conf_top_dirs}/${exec_dir_after} -type f -perm +1 | sort`; do
     echo -n "Executing $r .. "
     echo "------------- Executing $r -----------------" >> ${logfile}
     ${r} 2>&1 >> ${logfile}



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (90, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

-- no debconf information

---------------------------------------
Received: (at 332918-done) by bugs.debian.org; 19 Dec 2005 02:18:02 +0000
>From [EMAIL PROTECTED] Sun Dec 18 18:18:02 2005
Return-path: <[EMAIL PROTECTED]>
Received: from smtp3.stanford.edu ([171.67.16.138])
        by spohr.debian.org with esmtp (Exim 4.50)
        id 1EoAbB-0006pM-Uf; Sun, 18 Dec 2005 18:18:02 -0800
Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.64.19.147])
        by smtp3.Stanford.EDU (8.12.11/8.12.11) with ESMTP id jBJ2HxlA032340;
        Sun, 18 Dec 2005 18:17:59 -0800
Received: by windlord.stanford.edu (Postfix, from userid 1000)
        id 2035AE7922; Sun, 18 Dec 2005 18:17:59 -0800 (PST)
From: Russ Allbery <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED],
        [EMAIL PROTECTED]
Subject: Bugs fixed in switchconf 0.0.5.1-1 release
Organization: The Eyrie
Date: Sun, 18 Dec 2005 18:17:59 -0800
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Gnus/5.110004 (No Gnus v0.4) XEmacs/21.4.17 (linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 2

Version: 0.0.5.1-1

These bugs were fixed in the 0.0.5.1-1 upload.  The full changelog wasn't
included due to a sponsoring mistake on my part.  Here is the full
changelog of the new upload.

switchconf (0.0.5.1-1) unstable; urgency=low

  * New upstream version, to fix an error handling orig.tar.gz

switchconf (0.0.5-2) unstable; urgency=low

  * Updated to Standards Version 3.6.2
  * Updated the address of Free Software Foundation
  * DH_COMPAT is 4 and not 5 because I need to build this in sarge.
  * Removed unneeded comments from rules.
  * Removed dh_installcron and dh_installinfo because are not needed.

switchconf (0.0.5-1) unstable; urgency=low

  * New upstream version:
  * Abort execution when don't exist configuration file. Closes the bug report
    "switchconf: exit if the configuration is not found" (Closes #332916)
  * Sort the files in /etc/switchconf/{before,after}.d before execution
    (Closes #332918)
  * Corrected the args of find when listing configuration schemes. Closes
    the bug report "find: warning: you have specified the -maxdepth option
    ..." (Closes #332920)
  * rename plugins pcmcia to 20pcmcia, to make easy to control the order
    of running the plugins.

Thanks to the maintainer, Jose Calhariz <[EMAIL PROTECTED]>,
for the new version!

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to