diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-02-14 01:29:33 -0600 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-02-14 01:29:33 -0600 |
commit | 6203dc2fc926781db694ca2383b1e44e2c5469c7 (patch) | |
tree | 6aed6b1417578e7d35655fade98f08587a492ba3 /filter.py | |
parent | 2321a53d35a9736b8c5c715ca40a9af69b1bf64e (diff) |
- filter.py:
* Makes a blacklist for rsync
- pato2.py:
* Has more functions
Diffstat (limited to 'filter.py')
-rw-r--r-- | filter.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -#! /usr/bin/python + #! /usr/bin/python #-*- encoding: utf-8 -*- import commands import os @@ -79,3 +79,7 @@ def generate_exclude_list_from_blacklist(packages_iterable, blacklisted_names, except IOError: printf("%s wasnt written" % blacklist_file) +if name == "__main__": + a=run_rsync(rsync_list_command) + packages=get_file_list_from_rsync_output(a) + generate_exclude_list_from_blacklist(packages,listado(blacklist)) |