rename cups_simgle_file.patch to cups_single_file.patch.

Signed-off-by: dongzhengkuan <dongzhengkuan@huawei.com>
This commit is contained in:
dongzhengkuan 2023-07-06 02:51:49 +00:00 committed by Gitee
parent b0356bbba7
commit d5961f92a8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 14 additions and 14 deletions

View File

@ -1,14 +0,0 @@
diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c
index 786c66b..65aa200 100644
--- a/cups/ppd-cache.c
+++ b/cups/ppd-cache.c
@@ -1746,7 +1746,8 @@ _ppdCacheCreateWithPPD(ppd_file_t *ppd) /* I - PPD file */
if ((ppd_attr = ppdFindAttr(ppd, "cupsSingleFile", NULL)) != NULL)
pc->single_file = !_cups_strcasecmp(ppd_attr->value, "true");
-
+ else
+ pc->single_file = 1;
/*
* Copy the product string, if any...
*/

14
cups_single_file.patch Normal file
View File

@ -0,0 +1,14 @@
diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c
index 786c66b..65aa200 100644
--- a/cups/ppd-cache.c
+++ b/cups/ppd-cache.c
@@ -1746,7 +1746,8 @@ _ppdCacheCreateWithPPD(ppd_file_t *ppd) /* I - PPD file */
if ((ppd_attr = ppdFindAttr(ppd, "cupsSingleFile", NULL)) != NULL)
pc->single_file = !_cups_strcasecmp(ppd_attr->value, "true");
-
+ else
+ pc->single_file = 1;
/*
* Copy the product string, if any...
*/