projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc8f275
)
Do not allow version specification in PreReq:
author
marc
<devnull@localhost>
Fri, 29 Aug 1997 14:04:58 +0000
(14:04 +0000)
committer
marc
<devnull@localhost>
Fri, 29 Aug 1997 14:04:58 +0000
(14:04 +0000)
CVS patchset: 1812
CVS date: 1997/08/29 14:04:58
build/spec.c
patch
|
blob
|
history
diff --git
a/build/spec.c
b/build/spec.c
index
401500a
..
3427cf6
100644
(file)
--- a/
build/spec.c
+++ b/
build/spec.c
@@
-330,6
+330,11
@@
static int parseRequiresConflicts(struct PackageRec *p, char *line,
"No versions on file names in Requires: %s", req);
return RPMERR_BADSPEC;
}
+ if (flag == RPMTAG_PREREQ) {
+ rpmError(RPMERR_BADSPEC,
+ "No versions in PreReq: %s", req);
+ return RPMERR_BADSPEC;
+ }
/* read a version */
flags |= rc->flags;
version = strtok(NULL, " ,\t\n");