Changeset 9df7918 in mainline


Ignore:
Timestamp:
2008-11-02T17:50:17Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6132b59
Parents:
e1c88d5
Message:

Do not add .svn directories to initial ramdisk.

Location:
tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/mkfat.py

    re1c88d5 r9df7918  
    3737import array
    3838
     39exclude_names = set(['.svn'])
     40
    3941def align_up(size, alignment):
    4042        "Return size aligned up to alignment"
     
    287289                canon = os.path.join(root, name)
    288290               
    289                 if (os.path.isfile(canon)):
     291                if (os.path.isfile(canon) and (not name in exclude_names)):
    290292                        rv = write_file(canon, outf, cluster_size, data_start, fat, reserved_clusters)
    291293                        directory.append(create_dirent(name, False, rv[0], rv[1]))
    292294               
    293                 if (os.path.isdir(canon)):
     295                if (os.path.isdir(canon) and (not name in exclude_names)):
    294296                        rv = recursion(False, canon, outf, cluster_size, root_start, data_start, fat, reserved_clusters, dirent_size, empty_cluster)
    295297                        directory.append(create_dirent(name, True, rv[0], rv[1]))
  • tools/mktmpfs.py

    re1c88d5 r9df7918  
    3434import os
    3535import xstruct
     36
     37exclude_names = set(['.svn'])
    3638
    3739HEADER = """little:
     
    7173                canon = os.path.join(root, name)
    7274               
    73                 if (os.path.isfile(canon)):
     75                if (os.path.isfile(canon) and (not name in exclude_names)):
    7476                        size = os.path.getsize(canon)
    7577                       
     
    9092                        inf.close()
    9193               
    92                 if (os.path.isdir(canon)):
     94                if (os.path.isdir(canon) and (not name in exclude_names)):
    9395                        dentry = xstruct.create(DENTRY_DIRECTORY % len(name))
    9496                        dentry.kind = TMPFS_DIRECTORY
Note: See TracChangeset for help on using the changeset viewer.