From 4f6279e3ef8e112290850aa6471ee6a73d375ae3 Mon Sep 17 00:00:00 2001 From: Christian Haselgrove Date: Tue, 21 May 2019 16:31:12 +0000 Subject: [PATCH] seemingly trivial refactoring --- reproman/distributions/debian.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/reproman/distributions/debian.py b/reproman/distributions/debian.py index 6c9ad9b35..77f9ee85a 100644 --- a/reproman/distributions/debian.py +++ b/reproman/distributions/debian.py @@ -100,12 +100,22 @@ class DebianDistribution(Distribution): """ apt_sources = TypedList(APTSource) - packages = TypedList(DEBPackage) + _packages = TypedList(DEBPackage) version = attrib() # version as depicted by /etc/debian_version _collection_attribute = 'packages' + @property + def packages(self): + return self._packages + + + @packages.setter + def packages(self, value): + self._packages = value + + def initiate(self, session): """ Perform any initialization commands needed in the environment.