7 Star 3 Fork 28

OpenHarmony/third_party_cups
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ohos-ppdfile-not-generated.patch 717 Bytes
一键复制 编辑 原始数据 按行查看 历史
yyc1234 提交于 2024-11-12 14:34 +08:00 . 修改install.py和ppd不生成的patch
diff --git a/scheduler/ipp.c b/scheduler/ipp.c
index 5972b99..9d3cf35 100644
--- a/scheduler/ipp.c
+++ b/scheduler/ipp.c
@@ -5325,7 +5325,8 @@ create_local_bg_thread(
cupsdLogMessage(CUPSD_LOG_DEBUG, "%s: Get-Printer-Attributes returned %s (%s)", printer->name, ippErrorString(cupsLastError()), cupsLastErrorString());
- if (status == IPP_STATUS_ERROR_BAD_REQUEST || status == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED)
+ if (status == IPP_STATUS_ERROR_BAD_REQUEST || status == IPP_STATUS_ERROR_VERSION_NOT_SUPPORTED ||
+ (attr = ippFindAttribute(response, "document-format-supported", IPP_TAG_MIMETYPE)) == NULL)
{
/*
* Try request using IPP/1.1, in case we are talking to an old CUPS server or
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony/third_party_cups.git
git@gitee.com:openharmony/third_party_cups.git
openharmony
third_party_cups
third_party_cups
master

搜索帮助