FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 10-27-2010, 05:10 PM
Chris Lumens
 
Default 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
 

Thread Tools




All times are GMT. The time now is 03:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org