*** empty log message ***
authormarc <devnull@localhost>
Mon, 29 Jun 1998 04:42:36 +0000 (04:42 +0000)
committermarc <devnull@localhost>
Mon, 29 Jun 1998 04:42:36 +0000 (04:42 +0000)
CVS patchset: 2152
CVS date: 1998/06/29 04:42:36

CHANGES
build/spec.c

diff --git a/CHANGES b/CHANGES
index 89af696..90b4990 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -13,6 +13,7 @@
        - make --justdb install files in normal state
        - %{fssizes} segv'd for packages with empty file lists
        - updated HP-UX, OSF1, Irix 6.x dependency scripts (Tim Mooney)
+       - allow whitespace in source/patche lines
        
 2.5 -> 2.5.1:
        - fail if sources are not regular files
index d5410ea..ca809c5 100644 (file)
@@ -150,9 +150,11 @@ int addSource(Spec spec, Package pkg, char *field, int tag)
     if (tag != RPMTAG_ICON) {
        /* We already know that a ':' exists, and that there */
        /* are no spaces before it.                          */
+       /* This also now allows for spaces and tabs between  */
+       /* the number and the ':'                            */
 
        nump = buf;
-       while (*fieldp != ':') {
+       while ((*fieldp != ':') && (*fieldp != ' ') && (*fieldp != '\t')) {
            *nump++ = *fieldp++;
        }
        *nump = '\0';