~noizyland/duplicity/fix-progress

« back to all changes in this revision

Viewing changes to dist/makedist

  • Committer: Kenneth Loafman
  • Date: 2015-05-08 12:28:47 UTC
  • Revision ID: kenneth@loafman.com-20150508122847-z6dxdm3qqgumugef
* Added ability to get single file status from collection-status with
  patch from jitao (bug 1044715), like so:
  $ duplicity collection-status --file-changed c1 file://./foo

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    os.mkdir(tardir)
61
61
    bzr = subprocess.Popen(["bzr", "ls", "-RV", "."], stdout=subprocess.PIPE)
62
62
    testfiles = bzr.communicate()[0].split()
 
63
    if len(testfiles) == 0:
 
64
        git = subprocess.Popen(["git", "ls-files"], stdout=subprocess.PIPE)
 
65
        testfiles = git.communicate()[0].split()
 
66
 
63
67
    for filename in testfiles:
64
68
        if os.path.isdir(filename):
65
69
            os.mkdir(os.path.join(tardir, filename))