From 485c41dcfdfed6dfa4fd4a980ed76d0262e479e4 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Apr 29 2011 00:38:47 +0000 Subject: Fix retiring a package with a provided message (#701626) --- diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index a3e2c9d..a32ee85 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -822,16 +822,16 @@ def retire(path, message=None): _run_command(cmd, cwd=path) if not message: - msg = 'Package is retired' + message = 'Package is retired' fd = open(os.path.join(path, 'dead.package'), 'w') - fd.write(msg) + fd.write(message) fd.close() cmd = ['git', 'add', os.path.join(path, 'dead.package')] _run_command(cmd, cwd=path) - commit(path, msg) + commit(path, message) return