From be48931aa9820dc1007bc68266478d7cca02f966 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 8 Nov 2011 18:06:58 +0100
Subject: [PATCH] Honour computer partition lifetime.

If partition is related with delivered cleanup delivery, it still might be
capable to be serve something.
---
 ...puterPartition_getAvailableSoftwareReleaseUrlStringList.xml | 3 ++-
 master/bt5/vifib_base/bt/revision                              | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/ComputerPartition_getAvailableSoftwareReleaseUrlStringList.xml b/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/ComputerPartition_getAvailableSoftwareReleaseUrlStringList.xml
index 261b4567a..b12eb7035 100644
--- a/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/ComputerPartition_getAvailableSoftwareReleaseUrlStringList.xml
+++ b/master/bt5/vifib_base/SkinTemplateItem/portal_skins/vifib_base/ComputerPartition_getAvailableSoftwareReleaseUrlStringList.xml
@@ -66,7 +66,8 @@ elif slap_state == \'busy\':\n
   except ValueError:\n
     pass\n
   else:\n
-    return []\n
+    if delivery_line.getSimulationState() != \'delivered\':\n
+      return []\n
 \n
   try:\n
     delivery_line = context.Item_getInstancePackingListLine()\n
diff --git a/master/bt5/vifib_base/bt/revision b/master/bt5/vifib_base/bt/revision
index 1a7d3a1c8..ab760c939 100644
--- a/master/bt5/vifib_base/bt/revision
+++ b/master/bt5/vifib_base/bt/revision
@@ -1 +1 @@
-318
\ No newline at end of file
+319
\ No newline at end of file
-- 
2.30.9