From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74144 invoked by alias); 31 Jul 2018 19:29:23 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 74118 invoked by uid 89); 31 Jul 2018 19:29:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Sound, wave, Singles, singles X-HELO: vsmx012.vodafonemail.xion.oxcs.net Received: from Unknown (HELO vsmx012.vodafonemail.xion.oxcs.net) (153.92.174.90) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Jul 2018 19:29:20 +0000 Received: from vsmx004.vodafonemail.xion.oxcs.net (unknown [192.168.75.198]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTP id C03448CDDAF for ; Tue, 31 Jul 2018 19:29:11 +0000 (UTC) Received: from Gertrud (unknown [87.185.219.29]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 9989ECDF96 for ; Tue, 31 Jul 2018 19:29:09 +0000 (UTC) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: [PATCH] setup spews too many messages Date: Tue, 31 Jul 2018 19:29:00 -0000 Message-ID: <87h8kfb3wh.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-07/txt/msg00116.txt.bz2 --8<---------------cut here---------------start------------->8--- fix excessive message spewage when package vendor is something other than "cygwin" Installed packages are getting coerced to vendor "cygwin", so there will be warnings if the vendor string of the single repo is something other than that. Use "@System" like zypper for these and suppress the warning if it would concern an installed package. Note: The program logic might now fail to warn about having multiple vendors providing the same package, I didn't test that yet. Modified package_db.cc diff --git a/package_db.cc b/package_db.cc index b74aafd..2921d2f 100644 --- a/package_db.cc +++ b/package_db.cc @@ -129,7 +129,7 @@ packagedb::read () // very limited information is available from installed.db, so // we put our best guesses here... - data.vendor = "cygwin"; + data.vendor = "@System"; data.requires = NULL; data.obsoletes = NULL; data.provides = NULL; Modified package_meta.cc diff --git a/package_meta.cc b/package_meta.cc index f765baf..3b578a7 100644 --- a/package_meta.cc +++ b/package_meta.cc @@ -184,9 +184,12 @@ packagemeta::add_version (const SolverPool::addPackageData &inpkgdata) used to control which packageversion the solver picks. For the moment, just warn that you might not be getting what you think you should... */ - Log (LOG_PLAIN) << "Version " << pkgdata.version << " of package " << - name << " is present in releases labelled " << pkgdata.vendor << - " and " << i->Vendor() << endLog; + if (pkgdata.vendor != "@System") + { + Log (LOG_PLAIN) << "Version " << pkgdata.version << " of package " << + name << " is present in releases labelled " << pkgdata.vendor << + " and " << i->Vendor() << endLog; + } } versions.erase(i); --8<---------------cut here---------------end--------------->8--- Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds