+2008-03-28 Ian Jackson <ian@davenant.greenend.org.uk>
+
+ * src/packages.c (deppossi_ok_found): Refactor returning code.
+
2008-03-28 Ian Jackson <ian@davenant.greenend.org.uk>
* src/depcon.c (depisok): Improve whynot message by stating when a
possdependee->name);
}
- if (fc_depends) thisf= (dependtry >= 4) ? 2 : 1;
- debug(dbg_depcondetail," not configured/able - returning %d",thisf);
- (*interestingwarnings)++;
- return thisf;
+ debug(dbg_depcondetail, " not configured/able");
+ goto unsuitable;
}
default:
if (providing) {
possdependee->name);
}
- if (fc_depends) thisf= (dependtry >= 4) ? 2 : 1;
- debug(dbg_depcondetail," not installed - returning %d",thisf);
- (*interestingwarnings)++;
- return thisf;
+ debug(dbg_depcondetail, " not installed");
+ goto unsuitable;
}
+
+unsuitable:
+ if (fc_depends)
+ thisf = (dependtry >= 4) ? 2 : 1;
+
+ debug(dbg_depcondetail, " returning %d", thisf);
+ (*interestingwarnings)++;
+
+ return thisf;
}
static void breaks_check_one(struct varbuf *aemsgs, int *ok,