return 1;
}
return strcmp(na, nb);
- } else {
- /* the same name */
- if ( pool->solvables[a].evr == pool->solvables[b].evr)
- {
- /* prefer installed solvables first */
- if (solv->installed && pool->solvables[a].repo == solv->installed)
- return -1;
- if (solv->installed && pool->solvables[b].repo == solv->installed)
- return 1;
- }
+ }
+ /* the same name */
+ if (pool->solvables[a].evr == pool->solvables[b].evr && solv->installed)
+ {
+ /* prefer installed solvables */
+ if (pool->solvables[a].repo == solv->installed)
+ return -1;
+ if (pool->solvables[b].repo == solv->installed)
+ return 1;
}
return a - b;
}
"solvable:isvisible", /* from susetags */
"solvable:patchcategory",
+ "solvable:headerend",
0
};
#define SOLVABLE_ISVISIBLE 63
#define SOLVABLE_PATCHCATEGORY 64
+#define SOLVABLE_HEADEREND 65
-#define ID_NUM_INTERNAL 65
+#define ID_NUM_INTERNAL 66
/* well known solvable */
return buf;
}
-static inline void *sat_extend_cleanup(void *buf, size_t len, size_t size)
-{
- if (len)
- buf = sat_realloc2(buf, len, size);
- return buf;
-}
-
#endif /* SATSOLVER_UTIL_H */