|
@@ -1935,11 +1935,12 @@ alternative_needs_update(struct alternative *a)
|
|
|
if (current == NULL)
|
|
if (current == NULL)
|
|
|
return ALT_UPDATE_LINK_BROKEN;
|
|
return ALT_UPDATE_LINK_BROKEN;
|
|
|
|
|
|
|
|
- if (!alternative_has_choice(a, current))
|
|
|
|
|
- return ALT_UPDATE_NO;
|
|
|
|
|
-
|
|
|
|
|
fs = alternative_get_fileset(a, current);
|
|
fs = alternative_get_fileset(a, current);
|
|
|
|
|
|
|
|
|
|
+ /* Stop if we do not have the choice. */
|
|
|
|
|
+ if (fs == NULL)
|
|
|
|
|
+ return ALT_UPDATE_NO;
|
|
|
|
|
+
|
|
|
/* Check slaves */
|
|
/* Check slaves */
|
|
|
for (sl = a->slaves; sl; sl = sl->next) {
|
|
for (sl = a->slaves; sl; sl = sl->next) {
|
|
|
if (alternative_has_broken_slave(sl, fs)) {
|
|
if (alternative_has_broken_slave(sl, fs)) {
|