Пример #1
0
 def set_source(self, name, type):
     Repository.set_source(self, name, type)
     self.local_src = self.manager.make_source(name, type)
     self.local = LocalRepository(self.conn, name, type)
     self.remote_src = self.manager.get_remote(name, type, remote=True)
Пример #2
0
 def __init__(self, conn, name, type):
     print 'RemoteRepository', name, type
     Repository.__init__(self, conn, name, type)
     self.set_source(name, type)
     self.diff = {}
Пример #3
0
 def update_release_file(self, release_file=None):
     if release_file is None:
         release_file = self.get_release_file()
     c = self.current
     Repository.update_release_file(self, c.name, c.type, release_file)
Пример #4
0






if __name__ == '__main__':
    cfg = Configuration()
    #conn = LocalConnection(cfg['repos_db'])
    from paella.db.lowlevel import QuickConn
    #conn = QuickConn(cfg)
    conn = RepositoryConnection()
    mirror = 'http://10.0.0.2/debian'
    path = '/mirrors/share/Debian/repos/'

    sources = parse_sources_list('/etc/apt/sources.list')

    ls = sources[0]
    rs = sources[2]

    #rp = LocalRepos(ls)
    r = Repository(conn)
    rr = RemoteRepository(conn)

    def dtables():
        for t in rr.repos.tables():
            rr.repos.execute('drop table %s'%t)
        
    s = make_source('deb file:/mirrors/debian sid main non-free contrib')
Пример #5
0
 def __init__(self, conn, name, type):
     Repository.__init__(self, conn, name, type)