[Piuparts-devel] Bug#586793: Bug#586793: moving initscripts from S to K looks wrong to me (Re: Bug#586793: piuparts must deal with changing symlinks in /etc/rcX.d/

Holger Levsen holger at layer-acht.org
Mon Jan 3 19:18:22 UTC 2011


Hi,

On Montag, 3. Januar 2011, Holger Levsen wrote:
> Ah, thanks for the info. Them I'll jsut wait for Andreas to come up with a
> patch :-)

I think I have a patch :-)

Index: piuparts.py
===================================================================
--- piuparts.py (revision 855)
+++ piuparts.py (working copy)
@@ -1462,11 +1462,11 @@
 
     # fix for #586793 by Andreas Beckmann <debian at abeckmann.de>
     # prune rc?.d symlinks renamed by insserv
-    pat1 = re.compile(r"^(/etc/rc.\.d/[SK])[0-9]{2}(.*)$")
+    pat1 = re.compile(r"^(/etc/rc.\.d/)[SK][0-9]{2}(.*)$")
     for name1, data1 in removed[:]:
         m = pat1.search(name1)
         if m:
-            pat2 = re.compile(r"^" + m.group(1) + r"[0-9]{2}" + m.group(2) + 
+            pat2 = re.compile(r"^" + m.group(1) + r"[SK][0-9]{2}" + 
m.group(2) + 
 r"$")
             for name2, data2 in new[:]:
                 m = pat2.search(name2)


cheers,
	Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20110103/21441777/attachment.pgp>


More information about the Piuparts-devel mailing list