public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: jturney@sourceware.org
To: cygwin-apps-cvs@sourceware.org
Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20181020-18-ga4a44a4
Date: Wed, 29 May 2019 18:01:00 -0000	[thread overview]
Message-ID: <20190529180102.8729.qmail@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=a4a44a4f8805c1f3574e35282d2ae1888737dff0

commit a4a44a4f8805c1f3574e35282d2ae1888737dff0
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Fri Mar 2 22:23:30 2018 +0000

    Update hint parsing tests
    
    Use a separate expected file for each pvr.hint
    Add testing of override.hint parsing

https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=9088dbed4223bfc2ba47c1971c44d7b699268ef4

commit 9088dbed4223bfc2ba47c1971c44d7b699268ef4
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Thu Mar 1 16:13:01 2018 +0000

    Remove reading setup.hint files


Diff:
---
 calm/package.py |    5 ++---
 calm/uploads.py |    3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/calm/package.py b/calm/package.py
index ebec84a..95ea7cb 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -162,7 +162,7 @@ def clean_hints(p, hints, warnings):
 #
 # read a single package
 #
-def read_package(packages, basedir, dirpath, files, remove=[], upload=False):
+def read_package(packages, basedir, dirpath, files, remove=[]):
     relpath = os.path.relpath(dirpath, basedir)
     warnings = False
 
@@ -305,8 +305,7 @@ def read_package(packages, basedir, dirpath, files, remove=[], upload=False):
                 ovr = vr
 
             version_hints[ovr] = pvr_hint
-            if hint_fn:
-                hint_files[ovr] = hint_fn
+            hint_files[ovr] = hint_fn
             actual_tars[ovr] = tars[vr]
 
         # ignore dotfiles
diff --git a/calm/uploads.py b/calm/uploads.py
index 2f84911..69951cf 100644
--- a/calm/uploads.py
+++ b/calm/uploads.py
@@ -257,8 +257,7 @@ def scan(m, all_packages, arch, args):
 
         # read and validate package
         if files:
-            # strict means we consider warnings as fatal for upload
-            if package.read_package(packages, m.homedir(), dirpath, files, remove=removed_files, upload=True):
+            if package.read_package(packages, m.homedir(), dirpath, files, remove=removed_files):
                 error = True
 
     # always consider timestamp as checked during a dry-run, so it is never


                 reply	other threads:[~2019-05-29 18:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190529180102.8729.qmail@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).