#! /bin/sh /usr/share/dpatch/dpatch-run ## 11_add_raw_extension_support.dpatch by Tiago Bortoletto Vaz ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: add .raw to be considered as a ISO 9660 cd image @DPATCH@ diff -urNad gnomebaker-0.5.1~/src/burn.c gnomebaker-0.5.1/src/burn.c --- gnomebaker-0.5.1~/src/burn.c 2006-09-04 13:17:29.000000000 -0400 +++ gnomebaker-0.5.1/src/burn.c 2006-09-04 13:17:58.000000000 -0400 @@ -156,7 +156,7 @@ gnomebaker_show_msg_dlg(NULL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, GTK_BUTTONS_NONE, _("The file you have selected is not a cd image. Please select a cd image to burn."));*/ gchar* mime = gbcommon_get_mime_type(file); - if(g_ascii_strcasecmp(mime, "application/x-cd-image") == 0) + if(g_ascii_strcasecmp(mime, "application/x-cd-image") || gbcommon_str_has_suffix(file, ".raw") == 0) burn_cd_iso(file); else if(gbcommon_str_has_suffix(file, ".cue") || gbcommon_str_has_suffix(file, ".toc")) burn_cue_or_toc(file); diff -urNad gnomebaker-0.5.1~/src/gnomebaker.c gnomebaker-0.5.1/src/gnomebaker.c --- gnomebaker-0.5.1~/src/gnomebaker.c 2006-09-04 13:17:29.000000000 -0400 +++ gnomebaker-0.5.1/src/gnomebaker.c 2006-09-04 13:17:34.000000000 -0400 @@ -265,6 +265,7 @@ GB_LOG_FUNC if(gbcommon_str_has_suffix(filter_info->filename, ".cue") || gbcommon_str_has_suffix(filter_info->filename, ".toc") || + gbcommon_str_has_suffix(filter_info->filename, ".raw") || (g_ascii_strcasecmp(filter_info->mime_type, "application/x-cd-image") == 0)) return TRUE; return FALSE;