[ckan-changes] commit/ckanext-dgu: dread: [bin]: Extra logging for dry run case.

Bitbucket commits-noreply at bitbucket.org
Tue Nov 15 12:46:42 UTC 2011


1 new commit in ckanext-dgu:


https://bitbucket.org/okfn/ckanext-dgu/changeset/05551aeecf77/
changeset:   05551aeecf77
user:        dread
date:        2011-11-15 13:46:08
summary:     [bin]: Extra logging for dry run case.
affected #:  1 file

diff -r 2f74841435c14ade2b5fd9fc02b6499e01ad4b95 -r 05551aeecf7768379d3015701cfa244beff30852 ckanext/dgu/bin/national_statistic_filter.py
--- a/ckanext/dgu/bin/national_statistic_filter.py
+++ b/ckanext/dgu/bin/national_statistic_filter.py
@@ -77,6 +77,9 @@
                 if not self.force:
                     raise
             log.info('Changed ok')
+        else:
+            log.info('Would have updated: %r', pkg['name'])
+            
 
 class Command(MassChangerCommand):
     '''Looks through all packages and if one is marked national statistic, but is

Repository URL: https://bitbucket.org/okfn/ckanext-dgu/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list