[entropy.server] dep_rewrite: make possible to remove dependencies by providing "-" as replacement

This commit is contained in:
Fabio Erculiani
2010-08-09 23:00:53 +02:00
parent 3f141d7340
commit cc01fee65b
+1 -1
View File
@@ -4806,7 +4806,7 @@ class ServerMiscMixin:
compiled_pattern.subn(replace, dep_string)
if number_of_subs_made:
dep_string_matched = True
if new_dep_string:
if new_dep_string and (new_dep_string != "-"):
pkg_meta['dependencies'][new_dep_string] = dep_value
self.output(
"%s: %s => %s" % (