Ticket #635: 0001-ticket-635-bundlebuilder.list_files-handle-trailin.patch

File 0001-ticket-635-bundlebuilder.list_files-handle-trailin.patch, 894 bytes (added by homunq, 11 years ago)

patch to sugar-toolkit to fix

  • src/sugar/activity/bundlebuilder.py

    From 34f92804395873ab0a5f8c9e1a23fa42f255e0bb Mon Sep 17 00:00:00 2001
    From: homunq <jquinn@cs.oberlin.edu>
    Date: Wed, 25 Mar 2009 21:57:49 -0600
    Subject: [PATCH] ticket #635: bundlebuilder.list_files handle trailing slash in base_path
    
    ---
     src/sugar/activity/bundlebuilder.py |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/src/sugar/activity/bundlebuilder.py b/src/sugar/activity/bundlebuilder.py
    index 90fac55..e943892 100644
    a b IGNORE_FILES = ['.gitignore', 'MANIFEST', '*.pyc', '*~', '*.bak', 'pseudo.po'] 
    4040def list_files(base_dir, ignore_dirs=None, ignore_files=None):
    4141    result = []
    4242
     43    base_dir = os.path.abspath(base_dir)
     44
    4345    for root, dirs, files in os.walk(base_dir):
    4446        if ignore_files:
    4547            for pattern in ignore_files: