diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-12-31 02:02:40 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-12-31 02:02:40 +0800 |
commit | f6a66a300545c41523c406aa973a334ab82a700c (patch) | |
tree | 1a257e6f3e8a8de8f9d3183d11c87b949804bf98 /sysutils | |
parent | 6afab450ec33a7aba560f5c2f99b86859f2f901c (diff) | |
download | marcuscom-ports-f6a66a300545c41523c406aa973a334ab82a700c.tar marcuscom-ports-f6a66a300545c41523c406aa973a334ab82a700c.tar.gz marcuscom-ports-f6a66a300545c41523c406aa973a334ab82a700c.tar.bz2 marcuscom-ports-f6a66a300545c41523c406aa973a334ab82a700c.tar.lz marcuscom-ports-f6a66a300545c41523c406aa973a334ab82a700c.tar.xz marcuscom-ports-f6a66a300545c41523c406aa973a334ab82a700c.tar.zst marcuscom-ports-f6a66a300545c41523c406aa973a334ab82a700c.zip |
Correct the order in which we obtain read and write speeds so as not to
tokenize out the write speed before we process it.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1565 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/nautilus-cd-burner/Makefile | 2 | ||||
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-cd-drive.c | 46 |
2 files changed, 24 insertions, 24 deletions
diff --git a/sysutils/nautilus-cd-burner/Makefile b/sysutils/nautilus-cd-burner/Makefile index 791b6664e..4dd34f9ef 100644 --- a/sysutils/nautilus-cd-burner/Makefile +++ b/sysutils/nautilus-cd-burner/Makefile @@ -7,7 +7,7 @@ PORTNAME= nautilus-cd-burner PORTVERSION= 0.6.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.6 diff --git a/sysutils/nautilus-cd-burner/files/patch-cd-drive.c b/sysutils/nautilus-cd-burner/files/patch-cd-drive.c index 220d41b14..aea6a2e12 100644 --- a/sysutils/nautilus-cd-burner/files/patch-cd-drive.c +++ b/sysutils/nautilus-cd-burner/files/patch-cd-drive.c @@ -1,5 +1,5 @@ --- cd-drive.c.orig Mon Sep 8 15:24:07 2003 -+++ cd-drive.c Sun Dec 21 02:40:36 2003 ++++ cd-drive.c Tue Dec 30 12:46:59 2003 @@ -693,28 +693,133 @@ #endif /* __linux__ */ @@ -32,49 +32,49 @@ + NULL, + NULL, + NULL)) { -+ rd_speed = strstr (stdout_data, "Maximum read speed:"); -+ if (rd_speed != NULL) { ++ wr_speed = strstr (stdout_data, "Maximum write speed:"); ++ if (wr_speed != NULL) { + char *tok; -+ rd_speed += strlen ("Maximum read speed:"); -+ for (tok = strtok (rd_speed, " (),\t\n"); -+ tok && strcmp (tok, "CD"); ++ wr_speed += strlen ("Maximum write speed:"); ++ for (tok = strtok (wr_speed, " (),\t\n"); ++ tok && strcmp (tok, "CD"); + tok = strtok (NULL, " (),\t\n")) {} + tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_rd_speed = atol (tok); ++ *max_wr_speed = atol (tok); + } + else { -+ rd_speed = strstr (stdout_data, "Maximum read speed in kB/s:"); -+ if (rd_speed != NULL) { ++ wr_speed = strstr (stdout_data, "Maximum write speed in kB/s:"); ++ if (wr_speed != NULL) { + char *tok; -+ rd_speed += strlen ("Maximum read speed in kB/s:"); -+ for (tok = strtok (rd_speed, " (),\t\n"); ++ wr_speed += strlen ("Maximum write speed in kB/s:"); ++ for (tok = strtok (wr_speed, " (),\t\n"); + tok && strcmp (tok, "CD"); + tok = strtok (NULL, " (),\t\n")) {} + tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_rd_speed = atol (tok); ++ *max_wr_speed = atol (tok); + } + } + -+ wr_speed = strstr (stdout_data, "Maximum write speed:"); -+ if (wr_speed != NULL) { ++ rd_speed = strstr (stdout_data, "Maximum read speed:"); ++ if (rd_speed != NULL) { + char *tok; -+ wr_speed += strlen ("Maximum write speed:"); -+ for (tok = strtok (wr_speed, " (),\t\n"); -+ tok && strcmp (tok, "CD"); ++ rd_speed += strlen ("Maximum read speed:"); ++ for (tok = strtok (rd_speed, " (),\t\n"); ++ tok && strcmp (tok, "CD"); + tok = strtok (NULL, " (),\t\n")) {} + tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_wr_speed = atol (tok); ++ *max_rd_speed = atol (tok); + } + else { -+ wr_speed = strstr (stdout_data, "Maximum write speed in kB/s:"); -+ if (wr_speed != NULL) { ++ rd_speed = strstr (stdout_data, "Maximum read speed in kB/s:"); ++ if (rd_speed != NULL) { + char *tok; -+ wr_speed += strlen ("Maximum write speed in kB/s:"); -+ for (tok = strtok (wr_speed, " (),\t\n"); ++ rd_speed += strlen ("Maximum read speed in kB/s:"); ++ for (tok = strtok (rd_speed, " (),\t\n"); + tok && strcmp (tok, "CD"); + tok = strtok (NULL, " (),\t\n")) {} + tok = strtok (NULL, " (),\t\n"); /* Get the CD speed. */ -+ *max_wr_speed = atol (tok); ++ *max_rd_speed = atol (tok); + } + } + drive_cap = strstr (stdout_data, "Does write DVD-RAM media"); |