Show More
@@ -56,12 +56,12 b' class Command(BasePasterCommand):' | |||||
56 | #get SqlAlchemy session |
|
56 | #get SqlAlchemy session | |
57 | self._init_session() |
|
57 | self._init_session() | |
58 | rm_obsolete = self.options.delete_obsolete |
|
58 | rm_obsolete = self.options.delete_obsolete | |
59 |
|
|
59 | print 'Now scanning root location for new repos ...' | |
60 | added, removed = repo2db_mapper(ScmModel().repo_scan(), |
|
60 | added, removed = repo2db_mapper(ScmModel().repo_scan(), | |
61 | remove_obsolete=rm_obsolete) |
|
61 | remove_obsolete=rm_obsolete) | |
62 | added = ', '.join(added) or '-' |
|
62 | added = ', '.join(added) or '-' | |
63 | removed = ', '.join(removed) or '-' |
|
63 | removed = ', '.join(removed) or '-' | |
64 |
|
|
64 | print 'Scan completed added: %s removed: %s' % (added, removed) | |
65 |
|
65 | |||
66 | def update_parser(self): |
|
66 | def update_parser(self): | |
67 | self.parser.add_option( |
|
67 | self.parser.add_option( |
General Comments 0
You need to be logged in to leave comments.
Login now