projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b583ef
)
Fix parsing dep lines of content files (bnc #380396).
author
Michael Matz
<matz@suse.de>
Thu, 17 Apr 2008 15:24:46 +0000
(15:24 +0000)
committer
Michael Matz
<matz@suse.de>
Thu, 17 Apr 2008 15:24:46 +0000
(15:24 +0000)
tools/repo_content.c
patch
|
blob
|
history
diff --git
a/tools/repo_content.c
b/tools/repo_content.c
index
3a47e20
..
141cd6a
100644
(file)
--- a/
tools/repo_content.c
+++ b/
tools/repo_content.c
@@
-110,13
+110,8
@@
adddep(Pool *pool, struct parsedata *pd, unsigned int olddeps, char *line, Id ma
words = 0;
while (1)
{
- /* Name [relop evr
[rest]] --> 1
, 3 or 4 fields. */
+ /* Name [relop evr
] [rest] --> 1, 2
, 3 or 4 fields. */
words += split(line, sp + words, 4 - words);
- if (words == 2)
- {
- fprintf(stderr, "Bad dependency line: %s\n", line);
- exit(1);
- }
line = 0;
/* Hack, as the content file adds 'package:' for package
dependencies sometimes. */