X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=melanie;h=377547a966797f4fcb789959614fd0d9be6a46c8;hb=8e7b460758fb8a59697f2a95f1dc6279a676998f;hp=c76d7015d4dc19bcf537a1e1ab74873f202b30d9;hpb=a0b2b1aafec94c872ddcf2cd21dada1f0ab9240c;p=dak.git diff --git a/melanie b/melanie index c76d7015..377547a9 100755 --- a/melanie +++ b/melanie @@ -2,7 +2,7 @@ # General purpose archive tool for ftpmaster # Copyright (C) 2000 James Troup -# $Id: melanie,v 1.3 2001-01-28 09:06:44 troup Exp $ +# $Id: melanie,v 1.4 2001-01-31 03:36:36 troup Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -102,12 +102,12 @@ def main (): con_suites = "AND ("; for suite in string.split(Cnf["Melanie::Options::Suite"]): - if suite == "stable": + if not Cnf["Melanie::Options::No-Action"] and suite == "stable": print "**WARNING** About to remove from the stable suite!" print "This should only be done just prior to a (point) release and not at" print "any other time." game_over(); - elif suite == "testing": + elif not Cnf["Melanie::Options::No-Action"] and suite == "testing": print "**WARNING About to remove from the testing suite!" print "There's no need to do this normally as removals from unstable will" print "propogate to testing automagically." @@ -210,7 +210,7 @@ def main (): # If we don't have a reason; spawn an editor so the user can add one # Write the rejection email out as the .reason file - if not Cnf["Melanie::Options::Reason"]: + if not Cnf["Melanie::Options::Reason"] and not Cnf["Melanie::Options::No-Action"]: temp_filename = tempfile.mktemp(); fd = os.open(temp_filename, os.O_RDWR|os.O_CREAT|os.O_EXCL, 0700); os.close(fd);