SET(libsatsolverext_SRCS
pool_fileconflicts.c repo_content.c repo_deltainfoxml.c repo_helix.c repo_products.c
repo_releasefile_products.c repo_repomdxml.c repo_rpmdb.c repo_rpmmd.c
- repo_susetags.c repo_updateinfoxml.c repo_write.c repo_zyppdb.c)
+ repo_susetags.c repo_updateinfoxml.c repo_write.c repo_zyppdb.c
+ repo_deb.c)
ADD_LIBRARY(satsolverext STATIC ${libsatsolverext_SRCS})
pool_fileconflicts.h repo_content.h repo_deltainfoxml.h repo_helix.h repo_products.h
repo_releasefile_products.h repo_repomdxml.h repo_rpmdb.h repo_rpmmd.h
repo_susetags.h repo_updateinfoxml.h repo_write.h repo_zyppdb.h
- tools_util.h)
+ tools_util.h repo_deb.h)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
Pool *pool = repo->pool;
char *p, *n, *ne, *e, *ee;
Id id, name, evr;
- int c;
int flags;
while ((p = strchr(deps, ',')) != 0)
continue;
}
l = fread(buf, 1, sizeof(buf), fp);
- if (l < 8 + 60 || strncmp(buf, "!<arch>\ndebian-binary ", 8 + 16) != 0)
+ if (l < 8 + 60 || strncmp((char *)buf, "!<arch>\ndebian-binary ", 8 + 16) != 0)
{
fprintf(stderr, "%s: not a deb package\n", debs[i]);
fclose(fp);
continue;
}
- vlen = atoi(buf + 8 + 48);
+ vlen = atoi((char *)buf + 8 + 48);
if (vlen < 0 || vlen > l)
{
fprintf(stderr, "%s: not a deb package\n", debs[i]);
fclose(fp);
continue;
}
- if (strncmp(buf + 8 + 60 + vlen, "control.tar.gz ", 16) != 0)
+ if (strncmp((char *)buf + 8 + 60 + vlen, "control.tar.gz ", 16) != 0)
{
fprintf(stderr, "%s: control.tar.gz is not second entry\n", debs[i]);
fclose(fp);
continue;
}
- clen = atoi(buf + 8 + 60 + vlen + 48);
+ clen = atoi((char *)buf + 8 + 60 + vlen + 48);
if (clen <= 0)
{
fprintf(stderr, "%s: control.tar.gz has illegal size\n", debs[i]);
for (j = 124; j < 124 + 12; j++)
if (bp[j] >= '0' && bp[j] <= '7')
l2 = l2 * 8 + (bp[j] - '0');
- if (!strcmp(bp, "./control"))
+ if (!strcmp((char *)bp, "./control"))
break;
l2 = 512 + ((l2 + 511) & ~511);
l -= l2;
{
Id handle = s - pool->solvables;
repodata_set_location(data, handle, 0, 0, rpms[i]);
- repodata_set_num(data, handle, SOLVABLE_DOWNLOADSIZE, (unsigned int)((stb.st_size + 1023) / 1024));
+ if (S_ISREG(stb.st_mode))
+ repodata_set_num(data, handle, SOLVABLE_DOWNLOADSIZE, (unsigned int)((stb.st_size + 1023) / 1024));
repodata_set_num(data, handle, SOLVABLE_HEADEREND, headerend);
if (gotpkgid)
repodata_set_bin_checksum(data, handle, SOLVABLE_PKGID, REPOKEY_TYPE_MD5, pkgid);