From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from goalie.tycho.ncsc.mil (goalie [144.51.3.250]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id q6SH0Xwf032587 for ; Sat, 28 Jul 2012 13:00:33 -0400 Message-ID: <50141AB2.8010407@manicmethod.com> Date: Sat, 28 Jul 2012 13:00:34 -0400 From: Joshua Brindle MIME-Version: 1.0 To: William Roberts CC: selinux@tycho.nsa.gov Subject: Re: Mirrors References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov William Roberts wrote: > Recently, I used a SE Android mirror. > > After the repository was initialized with --mirror I had a cron job > the updated us every night through script. The script would repo init > (on the appropriate branch) pull the local manifest over .repo and > sync again. This all worked until the projects moved to bitbucket, now > for some reason it dies, it literally hangs checking out the objects. > > I then merged the local manifest project paths and branches into my > manifest to other people in my team can just do a checkout with repo > init -b seandroid (and others) > > Did anyone else have something similar setup and did they have similar > issues? Does anyone possibly know the cause? I'm doing the same thing. The issue I had was that the bitbucket repos are formatted like "device-moto-wingray" instead of device/moto/wingray so my mirror started checking out new repos and generally changing the directory layout of the mirror. I guess I could have copied everything over to the new locations and updated all the manifests but I found it lazier to "fix" repo, I'm not sure if they intended to do this or not: diff --git a/manifest_xml.py b/manifest_xml.py index a46cf24..a4c56e6 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -570,9 +570,9 @@ class XmlManifest(object): groups.append('default') if self.IsMirror: - relpath = None + #relpath = None worktree = None - gitdir = os.path.join(self.topdir, '%s.git' % name) + gitdir = os.path.join(self.topdir, '%s.git' % path) else: worktree = os.path.join(self.topdir, path).replace('\\', '/') gitdir = os.path.join(self.repodir, 'projects/%s.git' % path) -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.