diff options
| author | Chris Lumens <clumens@redhat.com> | 2010-10-25 15:37:43 -0400 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2010-10-29 15:40:34 -0400 |
| commit | 581763ca84bdaa43bb10b3a7a78d80f7fee15948 (patch) | |
| tree | 4591d9903af54b074e176314ed352ff752c0f25d /loader/method.c | |
| parent | 33c0b8e1d33d270b55f8734cd9bc3f3b2f353f0e (diff) | |
Don't look for a CD number in readStampFileFromIso.
Diffstat (limited to 'loader/method.c')
| -rw-r--r-- | loader/method.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/loader/method.c b/loader/method.c index 844048f7a..0d28460d2 100644 --- a/loader/method.c +++ b/loader/method.c @@ -127,39 +127,6 @@ int readStampFileFromIso(char *file, char **timestamp, char **releasedescr) { if (tmpptr) descr = strdup(tmpstr); - /* skip over arch */ - if (tmpptr) - tmpptr = fgets(tmpstr, sizeof(tmpstr), f); - - /* now get the CD number */ - if (tmpptr) { - unsigned int len; - char *p, *newstr; - - tmpptr = fgets(tmpstr, sizeof(tmpstr), f); - - /* nuke newline from end of descr, stick number on end*/ - for (p=descr+strlen(descr); p != descr && !isspace(*p); p--); - - *p = '\0'; - len = strlen(descr) + strlen(tmpstr) + 10; - newstr = malloc(len); - strncpy(newstr, descr, len-1); - strncat(newstr, " ", len-1); - - /* is this a DVD or not? If disc id has commas, like */ - /* "1,2,3", its a DVD */ - if (strchr(tmpstr, ',')) - strncat(newstr, "DVD\n", len-1); - else { - strncat(newstr, "disc ", len-1); - strncat(newstr, tmpstr, len-1); - } - - free(descr); - descr = newstr; - } - fclose(f); } } |
