]> arthur.barton.de Git - bup.git/blobdiff - cmd-save.py
executable files: don't assume python2.5.
[bup.git] / cmd-save.py
index c707b0222fc0a878504de585494d94499388982a..8c7ec9ef7ca60c8c6f239d41c8ca4ad98e9a6648 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.5
+#!/usr/bin/env python
 import sys, re, errno, stat, client
 import hashsplit, git, options, index
 from helpers import *
@@ -82,7 +82,9 @@ for (transname,ent) in index.Reader(git.repo('bupindex')).filter(extra):
                 status = 'M'
         else:
             status = ' '
-        log('\n%s %s ' % (status, ent.name))
+        if opt.verbose >= 2 or (status in ['A','M'] 
+                                and not stat.S_ISDIR(ent.mode)):
+            log('\n%s %s ' % (status, ent.name))
 
     if not exists:
         continue