shithub: mkarchive

Download patch

ref: 4a68f09fa1de6bf554c6a53a3addce194b29fc3e
parent: dd867674a58ff8fbf291a8d403d1d3c7f9d5da68
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Sep 25 17:37:12 EDT 2014

Use a valid variable

--- a/mkarchive.py
+++ b/mkarchive.py
@@ -36,7 +36,7 @@
 
 def addmail(lst):
     listdir = os.path.join(opts.outdir, lst)
-    lastadded = os.path.join(outdir, lst, '.lastindex')
+    lastadded = os.path.join(opts.outdir, lst, '.lastindex')
     lastindex = 0
     if os.access(lastadded, os.R_OK):
         with open(lastadded, 'r') as f: