Don't look for a CD number in readStampFileFromIso.
---
loader/method.c | 33 ---------------------------------
1 files changed, 0 insertions(+), 33 deletions(-)
diff --git a/loader/method.c b/loader/method.c
index 844048f..0d28460 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 = ' ';
- 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
", len-1);
- else {
- strncat(newstr, "disc ", len-1);
- strncat(newstr, tmpstr, len-1);
- }
-
- free(descr);
- descr = newstr;
- }
-
fclose(f);
}
}
--
1.7.1.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|