Handle versioned packages on removal as well as addition.
@@ -138,13 +138,14 @@ def ensure_packages(
)
for package in diff_packages: # add/remove from current packages
- if present:
version = 'unknown'
if version_join:
bits = package.rsplit(version_join, 1)
package = bits[0]
if len(bits) == 2:
version = bits[1]
+
+ if present:
current_packages[package] = [version]
else:
current_packages.pop(package, None)
