bin/clone_deps.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Wed, 16 May 2012 09:57:57 +0200
changeset 8410 eb6a607a0067
parent 8380 b752df3e8596
permissions -rwxr-xr-x
[migration] do not crash if the conf file is already migrated (closes #2361061)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     1
#!/usr/bin/python
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
     2
import sys
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
     3
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
     4
from subprocess import call as sbp_call, Popen, PIPE
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
     5
from urllib import urlopen
8380
b752df3e8596 [bin/clonedeps] fix NameError (closes #2334080)
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents: 8345
diff changeset
     6
import os
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
     7
from os import path as osp, pardir, chdir
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
     8
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
     9
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    10
def find_mercurial():
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    11
    print "trying to find mercurial from the command line ..."
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    12
    print '-' * 20
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    13
    tryhg = sbp_call(['hg', '--version'])
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    14
    if tryhg:
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    15
        print 'mercurial seems to be unavailable, please install it'
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    16
        raise
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    17
    print '-' * 20
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    18
    def hg_call(args):
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    19
        return sbp_call(['hg'] + args)
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    20
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    21
    return hg_call
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    22
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    23
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    24
BASE_URL = 'http://www.logilab.org/hg/'
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    25
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    26
to_clone = ['fyzz', 'yams', 'rql',
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    27
            'logilab/common', 'logilab/constraint', 'logilab/database',
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    28
            'logilab/devtools', 'logilab/mtconverter',
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    29
            'cubes/blog', 'cubes/calendar', 'cubes/card', 'cubes/comment',
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    30
            'cubes/datafeed', 'cubes/email', 'cubes/file', 'cubes/folder',
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    31
            'cubes/forgotpwd', 'cubes/keyword', 'cubes/link', 'cubes/localperms',
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    32
            'cubes/mailinglist', 'cubes/nosylist', 'cubes/person',
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    33
            'cubes/preview', 'cubes/registration', 'cubes/rememberme',
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    34
            'cubes/tag', 'cubes/vcsfile', 'cubes/zone']
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    35
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    36
# a couple of functions to be used to explore available
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    37
# repositories and cubes
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    38
def list_repos(repos_root):
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    39
    assert repos_root.startswith('http://')
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    40
    hgwebdir_repos = (repo.strip()
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    41
                      for repo in urlopen(repos_root + '?style=raw').readlines()
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    42
                      if repo.strip())
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    43
    prefix = osp.commonprefix(hgwebdir_repos)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    44
    return (repo[len(prefix):].strip('/')
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    45
            for repo in hgwebdir_repos)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    46
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    47
def list_all_cubes(base_url=BASE_URL):
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    48
    all_repos = list_repos(base_url)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    49
    #search for cubes
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    50
    for repo in all_repos:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    51
        if repo.startswith('cubes'):
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    52
            to_clone.append(repo)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    53
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    54
def get_latest_debian_tag(path):
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    55
    proc = Popen(['hg', '-R', path, 'tags'], stdout=PIPE)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    56
    out, _err = proc.communicate()
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    57
    for line in out.splitlines():
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    58
        if 'debian-version' in line:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    59
            return line.split()[0]
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    60
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    61
def main():
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    62
    if len(sys.argv) == 1:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    63
        base_url = BASE_URL
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    64
    elif len(sys.argv) == 2:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    65
        base_url = sys.argv[1]
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    66
    else:
7896
4c954e1e73ef [lint] remove uses of "print >> sys.stderr" (closes #1908571)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 6304
diff changeset
    67
        sys.stderr.write('usage %s [base_url]\n' %  sys.argv[0])
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    68
        sys.exit(1)
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    69
    hg_call = find_mercurial()
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    70
    print len(to_clone), 'repositories will be cloned'
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    71
    base_dir = osp.normpath(osp.join(osp.dirname(__file__), pardir, pardir))
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    72
    chdir(base_dir)
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    73
    not_updated = []
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    74
    for repo in to_clone:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    75
        url = base_url + repo
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    76
        if '/' not in repo:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    77
            target_path = repo
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    78
        else:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    79
            assert repo.count('/') == 1, repo
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    80
            directory, repo = repo.split('/')
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    81
            if not osp.isdir(directory):
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    82
                os.mkdir(directory)
8345
c6c76bf518d1 [bin] Force clone_deps.py to use mercurial command-line interface - closes #2296057
Anthony Truchet <anthony.truchet@logilab.fr>
parents: 7896
diff changeset
    83
                open(osp.join(directory, '__init__.py'), 'w').close()
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    84
            target_path = osp.join(directory, repo)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    85
        if osp.exists(target_path):
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    86
            print target_path, 'seems already cloned. Skipping it.'
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    87
        else:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    88
            hg_call(['clone', '-U', url, target_path])
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    89
            tag = get_latest_debian_tag(target_path)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    90
            if tag:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    91
                print 'updating to', tag
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    92
                hg_call(['update', '-R', target_path, tag])
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    93
            else:
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    94
                not_updated.append(target_path)
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    95
    print """
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    96
CubicWeb dependencies and standard set of cubes have been fetched and
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    97
update to the latest stable version.
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    98
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
    99
You should ensure your PYTHONPATH contains `%(basedir)s`.
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   100
You might want to read the environment configuration section of the documentation
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   101
at http://docs.cubicweb.org/admin/setup.html#environment-configuration
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   102
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   103
You can find more cubes at http://www.cubicweb.org.
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   104
Clone them from `%(baseurl)scubes/` into the `%(basedir)s%(sep)scubes%(sep)s` directory.
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   105
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   106
To get started you may read http://docs.cubicweb.org/tutorials/base/index.html.
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   107
""" % {'basedir': os.getcwd(), 'baseurl': base_url, 'sep': os.sep}
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   108
    if not_updated:
7896
4c954e1e73ef [lint] remove uses of "print >> sys.stderr" (closes #1908571)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 6304
diff changeset
   109
        sys.stderr.write('WARNING: The following repositories were not updated (no debian tag found):\n')
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   110
        for path in not_updated:
7896
4c954e1e73ef [lint] remove uses of "print >> sys.stderr" (closes #1908571)
Nicolas Chauvat <nicolas.chauvat@logilab.fr>
parents: 6304
diff changeset
   111
            sys.stderr.write('\t-%s\n' % path)
6304
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   112
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   113
if __name__ == '__main__':
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   114
    main()
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   115
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   116
228921b064c3 [doc,bin] add script to fetch & update most cw dependencies + some cubes
Aurelien Campeas <aurelien.campeas@logilab.fr>
parents:
diff changeset
   117