Permalink
Browse files

only update changes files if there are new changes

  • Loading branch information...
1 parent 74976ff commit 7882c37593e38e112c00bb1015b36bcbfcf227bc @mapleoin committed Jan 2, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 git_tarballs
View
@@ -161,7 +161,7 @@ def create_changes(changes_list, package_version, package_commit, email):
changes_diff = diff_changes(changes_list, package_commit)
if not changes_diff:
print "There are no new changes."
- return ''
+ return
timestamp = datetime.utcnow().strftime('%a %b %e %T UTC %Y')
@@ -220,5 +220,6 @@ if __name__ == '__main__':
package_version = package_version(upstream_version, upstream_commit)
changes = create_changes(changes_list, package_version, package_commit, args.email)
- update_changes_file(args.package, changes)
+ if changes:
+ update_changes_file(args.package, changes)
update_spec_file(package_version, tarball_parent_dir, args.filename)

0 comments on commit 7882c37

Please sign in to comment.