Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Lachu:SystemServices
PackageKit
n-0054-alpm-handle-configuration-NoProgressBar....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File n-0054-alpm-handle-configuration-NoProgressBar.patch of Package PackageKit
From 7004feea0ad2373a300286d7f985b2edf3239d77 Mon Sep 17 00:00:00 2001 From: Antonio Rojas <arojas@archlinux.org> Date: Fri, 11 Jun 2021 11:42:58 +0200 Subject: [PATCH 054/102] alpm - handle configuration 'NoProgressBar' diff --git a/backends/alpm/pk-alpm-config.c b/backends/alpm/pk-alpm-config.c index 01081106c..be6c665fc 100644 --- a/backends/alpm/pk-alpm-config.c +++ b/backends/alpm/pk-alpm-config.c @@ -40,7 +40,7 @@ static gchar *xfercmd = NULL; typedef struct { gboolean checkspace, color, disabledownloadtimeout, ilovecandy, - totaldl, usesyslog, verbosepkglists, is_check; + noprogressbar, totaldl, usesyslog, verbosepkglists, is_check; gchar *arch, *cleanmethod, *dbpath, *gpgdir, *logfile, *root, *xfercmd; @@ -146,6 +146,14 @@ pk_alpm_config_set_ilovecandy (PkAlpmConfig *config) config->ilovecandy = TRUE; } +static void +pk_alpm_config_set_noprogressbar (PkAlpmConfig *config) +{ + g_return_if_fail (config != NULL); + + config->noprogressbar = TRUE; +} + static void pk_alpm_config_set_totaldl (PkAlpmConfig *config) { @@ -182,6 +190,7 @@ static const PkAlpmConfigBoolean pk_alpm_config_boolean_options[] = { { "Color", pk_alpm_config_set_color }, { "DisableDownloadTimeout", pk_alpm_config_set_disabledownloadtimeout }, { "ILoveCandy", pk_alpm_config_set_ilovecandy }, + { "NoProgressBar", pk_alpm_config_set_noprogressbar }, { "TotalDownload", pk_alpm_config_set_totaldl }, { "UseSyslog", pk_alpm_config_set_usesyslog }, { "VerbosePkgLists", pk_alpm_config_set_verbosepkglists }, @@ -599,6 +608,11 @@ pk_alpm_config_parse (PkAlpmConfig *config, const gchar *filename, continue; } + if (g_strcmp0 (key, "ParallelDownloads") == 0 && str != NULL) { + /* Ignore "ParallelDownloads" key instead of crashing */ + continue; + } + /* report errors from above */ g_set_error (&e, PK_ALPM_ERROR, PK_ALPM_ERR_CONFIG_INVALID, "unrecognised directive '%s'", key); -- 2.35.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor