summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-11-16 14:32:56 +0100
committerMichael Schroeder <mls@suse.de>2011-11-16 14:34:13 +0100
commit3200333bb99807b51e235c2c6a81335efe46e15f (patch)
treee1780c0d2a65364e7f7812f100538ff462b9cafb
parent7b69005ee5d0fd0cdad0f8574e3c27b16ce1b7f9 (diff)
downloadlibsolv-3200333bb99807b51e235c2c6a81335efe46e15f.tar.gz
libsolv-3200333bb99807b51e235c2c6a81335efe46e15f.tar.bz2
libsolv-3200333bb99807b51e235c2c6a81335efe46e15f.zip
repo_deb: The control file may not have a leading "./". Thanks djszapi!
-rw-r--r--ext/repo_deb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/repo_deb.c b/ext/repo_deb.c
index 39739de..fcd4ebb 100644
--- a/ext/repo_deb.c
+++ b/ext/repo_deb.c
@@ -573,7 +573,7 @@ repo_add_debs(Repo *repo, const char **debs, int ndebs, int flags)
for (j = 124; j < 124 + 12; j++)
if (bp[j] >= '0' && bp[j] <= '7')
l2 = l2 * 8 + (bp[j] - '0');
- if (!strcmp((char *)bp, "./control"))
+ if (!strcmp((char *)bp, "./control") || !strcmp((char *)bp, "control"))
break;
l2 = 512 + ((l2 + 511) & ~511);
l -= l2;
@@ -581,7 +581,7 @@ repo_add_debs(Repo *repo, const char **debs, int ndebs, int flags)
}
if (l <= 512 || l - 512 - l2 <= 0 || l2 <= 0)
{
- fprintf(stderr, "%s: control.tar.gz contains no ./control file\n", debs[i]);
+ fprintf(stderr, "%s: control.tar.gz contains no control file\n", debs[i]);
free(ctar);
continue;
}