You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.warning(f"{name},{owner}{cur}{nxt} have unequal versions{all_versions[cur]}{all_versions[nxt]}")
205
+
logger.warning(f"{name},{owner}{cur}{nxt} have unequal versions")
206
206
continue
207
207
208
208
ifnxtnotinlocked_tool["revisions"]:
209
-
logger.info(f"{name},{owner} Adding {nxt} which was absent so far")
210
-
to_append.append(nxt)
209
+
ifadd:
210
+
logger.info(f"{name},{owner} remove {cur} in favor of {nxt} ")
211
+
logger.info(f"{name},{owner} Adding {nxt} which was absent so far")
212
+
to_append.append(nxt)
213
+
to_remove.append(cur)
211
214
elifgalaxy_url:
212
215
assert (name, owner) ininstalled_tools
213
216
ifcurininstalled_tools[(name, owner)]:
214
217
logger.warning(
215
218
f"{name},{owner}{cur} still installed on {galaxy_url}"
216
219
)
217
220
continue
218
-
logger.info(f"{name},{owner} remove {cur} in favor of {nxt} ")
219
-
to_remove.append(cur)
221
+
else:
222
+
logger.info(f"{name},{owner} remove {cur} in favor of {nxt} ")
223
+
to_remove.append(cur)
220
224
221
225
forrinto_remove:
222
226
locked_tool["revisions"].remove(r)
@@ -237,7 +241,10 @@ def fix_uninstallable(
237
241
help="Toolshed to test against",
238
242
)
239
243
parser.add_argument(
240
-
"--galaxy_url", default=None, required=False, help="Galaxy instance to check"
244
+
"--galaxy_url", default=None, required=False, help="Galaxy instance to check. If given it is checked if the not-installable revision is still installed."
245
+
)
246
+
parser.add_argument(
247
+
"--add", default=False, action="store_true", help="Add new intstallable revisions if missing, default is not to add it and also keep the uninstallable one"
0 commit comments