X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Frm.py;h=e20cb5c1abe5850ff40c1214d8cb55fd1a47162e;hb=57ab3a0d9a3eafaadd407ab5c1473d5b75397b70;hp=00643b1e5f1b09a850ba53f76c761718810e11e6;hpb=8d1607e01b87f42e876c00d2abed535216ac05f3;p=dak.git diff --git a/daklib/rm.py b/daklib/rm.py index 00643b1e..e20cb5c1 100644 --- a/daklib/rm.py +++ b/daklib/rm.py @@ -372,7 +372,7 @@ def remove(session, reason, suites, removals, if date is None: date = commands.getoutput("date -R") - if partial: + if partial and components: component_ids_list = [] for componentname in components: @@ -585,6 +585,3 @@ def remove(session, reason, suites, removals, logfile.write("=========================================================================\n") logfile822.write("\n") - - fcntl.lockf(logfile822, fcntl.LOCK_UN) - fcntl.lockf(logfile, fcntl.LOCK_UN)