[Mailman-Developers] rmlist bug?
David Champion
dgc@uchicago.edu
Wed, 14 Jun 2000 00:31:14 -0500
--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Sorry if this has come up before; I didn't see it.
rmlist has what would appear to be a bug: it doesn't care where you
keep your lists, but the Mailman configuration allows you to keep them
outside the tree that Mailman itself lives in. This patch against
current CVS repairs.
--
-D. dgc@uchicago.edu NSIT University of Chicago
--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="rmlist.patch"
Index: bin/rmlist
===================================================================
RCS file: /cvsroot/mailman/mailman/bin/rmlist,v
retrieving revision 1.12
diff -u -r1.12 rmlist
--- bin/rmlist 2000/03/21 06:26:18 1.12
+++ bin/rmlist 2000/06/14 05:27:28
@@ -40,6 +40,8 @@
import getopt
import paths
+from Mailman import Defaults
+
def usage(status, msg=''):
print __doc__ % globals()
if msg:
@@ -93,7 +95,7 @@
REMOVABLES.append(('locks/%s.lock', 'lock file'))
for dirtmpl, msg in REMOVABLES:
- dir = os.path.join(paths.prefix, dirtmpl % listname)
+ dir = os.path.join(Defaults.DATA_PREFIX, dirtmpl % listname)
remove_it(listname, dir, msg)
--7JfCtLOvnd9MIVvH--