All of lore.kernel.org
 help / color / mirror / Atom feed
* Git SRC_TARBALL_STASH filename
@ 2009-03-17  4:33 Douglas Royds
  2009-03-17  5:04 ` Tom Rini
  0 siblings, 1 reply; 8+ messages in thread
From: Douglas Royds @ 2009-03-17  4:33 UTC (permalink / raw)
  To: openembedded-devel

Working behind a firewall that doesn't allow Git access (except over 
http). I've set SRC_TARBALL_STASH so that we only have to download the 
appropriate source tarball (manually) once.

While building mtd-utils, BitBake is trying to fetch from the tarball stash:

    http://.../git_git.infradead.org.mtd-utils.git.tar.gz

Instead of:

    http://.../git_git.infradead.org.mtd-utils.git_ea429635388f7bb53f62c41ec3d5ccf5fa207370.tar.gz

The following patch appears to do the job, but I'm not confident this is 
the right fix. I notice that all the other fetchers use ud.localfile, 
which already has the correct filename.

Index: lib/bb/fetch/git.py
===================================================================
--- lib/bb/fetch/git.py    (revision 16639)
+++ lib/bb/fetch/git.py    (working copy)
@@ -73,7 +73,7 @@
 
         gitsrcname = '%s%s' % (ud.host, ud.path.replace('/', '.'))
 
-        repofilename = 'git_%s.tar.gz' % (gitsrcname)
+        repofilename = 'git_%s_%s.tar.gz' % (gitsrcname, ud.tag)
         repofile = os.path.join(data.getVar("DL_DIR", d, 1), repofilename)
         repodir = os.path.join(data.expand('${GITDIR}', d), gitsrcname)


Suggestions?
Douglas.






=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
 altered or corrupted during transmission.
=======================================================================



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-04-16 21:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-17  4:33 Git SRC_TARBALL_STASH filename Douglas Royds
2009-03-17  5:04 ` Tom Rini
2009-03-17 16:40   ` Shane Dixon
2009-03-17 16:57     ` Tom Rini
2009-03-17 22:16     ` Douglas Royds
2009-03-18  2:11   ` Douglas Royds
2009-03-18  6:25     ` Tom Rini
2009-04-16 21:04     ` Douglas Royds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.