[Python-modules-commits] [python-aptly] 01/03: Import python-aptly_0.7.10.orig.tar.gz

Filip Pytloun fpytloun-guest at moszumanska.debian.org
Mon Oct 31 14:28:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

fpytloun-guest pushed a commit to branch master
in repository python-aptly.

commit 4317061342fe361c162dcf78520eeb783f097262
Author: Filip Pytloun <filip at pytloun.cz>
Date:   Mon Oct 31 15:24:05 2016 +0100

    Import python-aptly_0.7.10.orig.tar.gz
---
 aptly/publisher/__init__.py | 13 ++++++-------
 aptly/publisher/__main__.py |  2 +-
 setup.py                    |  2 +-
 3 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/aptly/publisher/__init__.py b/aptly/publisher/__init__.py
index c7010bf..38a2929 100644
--- a/aptly/publisher/__init__.py
+++ b/aptly/publisher/__init__.py
@@ -395,12 +395,11 @@ class Publish(object):
             to_publish.sort()
             published.sort()
 
-            if to_publish == published:
+            if recreate:
+                lg.info("Recreating publish %s" % self.name)
+                self.drop_publish()
+                self.create_publish(force_overwrite, publish_contents)
+            elif to_publish == published:
                 lg.info("Publish %s is up to date" % self.name)
             else:
-                if recreate:
-                    lg.info("Recreating publish %s" % self.name)
-                    self.drop_publish()
-                    self.create_publish(force_overwrite, publish_contents)
-                else:
-                    self.update_publish(force_overwrite, publish_contents)
+                self.update_publish(force_overwrite, publish_contents)
diff --git a/aptly/publisher/__main__.py b/aptly/publisher/__main__.py
index 6685b53..586860b 100644
--- a/aptly/publisher/__main__.py
+++ b/aptly/publisher/__main__.py
@@ -44,7 +44,7 @@ def main():
 
     group_publish = parser.add_argument_group("Action 'publish'")
     group_publish.add_argument('-c', '--config', default="/etc/aptly/publisher.yaml", help="Configuration YAML file")
-    group_publish.add_argument('--dists', '--distributions', nargs='+', help="Space-separated list of distribution to work with (including prefix), default all.")
+    group_publish.add_argument('--dists', nargs='+', help="Space-separated list of distribution to work with (including prefix), default all.")
 
     group_promote = parser.add_argument_group("Action 'promote'")
     group_promote.add_argument('--source', help="Source publish to take snapshots from")
diff --git a/setup.py b/setup.py
index 5dbec7c..de0f5ec 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ long_desc = open('README.rst').read()
 
 setup(
     name="python-aptly",
-    version="0.7.9",
+    version="0.7.10",
     description="Aptly REST API client and tooling",
     long_description=long_desc,
     author="Filip Pytloun",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-aptly.git



More information about the Python-modules-commits mailing list