Age | Commit message (Collapse) | Author |
|
With the current implementation, file:// urls as used by sstate don't access the
mirror code, breaking sstate mirror support. This change enables the usual
mirror handling. To do this, we remove the localfile special case, using the basename
paramemter instead. We also ensure the downloads directory is checked for files.
The drawback of this change is that file urls containing "*" globing require special
casing in the core.
(From Poky rev: a778fb311540580476976e43f9c0576284f8dc38)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
The ordering constrains on the urldata_init functions are not straight
forward. To avoid further problems, create a helper function to setup
the source revisions which the init functions can all at the appropriate
point.
(From Poky rev: c4371138f7444ecaa1fdd2b1ee4949fbc819f886)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Fix a bug where ud.branches were being referenced before it was set by
the git fetcher when using AUTOREV. To do this some ordering needed
to be changed. This fixes errors like:
ERROR: Error parsing /recipes-kernel/linux/rt-tests_git.bb: Failure expanding variable
SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception
AttributeError: 'FetchData' object has no attribute 'branches'
(From Poky rev: 2d2d07275c8a2d652a221c1cd74d28c2f6f226d5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
- use os.chmod, not os.fchmod, as the latter is missing under pypy
- rearrange our imports a bit
- don't die if sqlite3 is missing shared cache support
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
* This patch fixes a cosmetic issue currently we get with master
WARNING: /home/kraj/work/bitbake/lib/bb/fetch2/__init__.py:733:
DeprecationWarning: Call to deprecated function bb.mkdirhier: Please use bb.utils.mkdirhier instead. bb.mkdirhier("%s/%s" % (rootdir, destdir))
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
SRC_URI is unnamed
(From Poky rev: 707132c60a84cdcf50da056c68f2da7402d3b2e8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
correctly
(From Poky rev: 3ef2d39dbf8a573acfbf633c1d5d7cb3cee18788)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
are resolved
(From Poky rev: b9a97e07b48b20b00feff5b8c7196c3a3b7762b6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Revise the unpack function to have a way to disable the unpack. This is
based on the work from "Andreas Oberritter <obi@opendreambox.org>", see
http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=2bdfe8519eda8067845019a699acdf19a21ba380
In addition, the to_boolean function comes from the work of
"Chris Larson <chris_larson@mentor.com>", see
http://cgit.openembedded.net/cgit.cgi/openembedded/commit/?id=900cc29b603691eb3a077cb660545ead3715ed54
(From Poky rev: 3faa635fd408695dd5b754fda3f6060dd670b81d)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
users usable error messages
(From Poky rev: 029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 132ec8d3b7e5916c64de85b248632021f51701d3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
and MIRRORS are being used
(From Poky rev: a72d49478e57b05b99cb1b3beec62a9e79a24e7a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
iteration in download()
(From Poky rev: 20afb21a375b6a5f0d4ff6e269eeee121d6f087a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: ea70c4362fdb81bc9467975c145c48196c45e3af)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 7f30131faaa5e3fdb1191c9da95c5683cefafeb5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 20ab1cb0ca10b0c7724f2154fe5b54c939b8a887)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 4a226460d5e158e8adbf74a68717cb9a923e8009)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
The common case (if not the only case) is to only use a single domain. The
only reason SQLData exists is to make it easier to delete a domain. Yet,
there's no need for us to delete a domain if SQLTable knows how to clear
itself out. So, add clear() to the table and pass the domain to persist().
Signed-off-by: Chris Larson <chris_larson@mentor.com>
|
|
This create a clean() method in each of the fetcher modules
and correctly cleans the .done stamp file and lock files
(From Poky rev: 14dea89521c0c648e8e543388096a6dcd6d4f2e0)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Enable the fetcher to be able to unpack and SRPM. By default the system will
unpack the contents of the SRPM into the WORKDIR.
A new syntax "unpack=file" was developed for the SRC_URI, to allow for a
recipe to extract a specific file within an SRPM. An unpack operation will
then be executed on the extracted file.
In order to apply extracted patches (or unpack files not specified with
unpack), you must specify the path using WORKDIR, i.e.:
file://${WORKDIR}/mypatch.patch
(From Poky rev: 906285ff00d6ffd3fd7713af52250e7c6503edb7)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: aa45760702e874977454778659c205b29d1ff049)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
instead of the main download function
(From Poky rev: ee1a9c0476cc4b2ce9dfb0faa29a1371a8517c40)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
premirrors as there could be data processing needed by the real fetcher
(From Poky rev: c4e66a7fe0c314b843aac6340995c584ec156529)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
failures occur
(From Poky rev: 91eeb9b0d334275ff2730e55e86fd351e1b652ef)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 0713fb6b99486cd08c6036dba7aeb15e3bfb8129)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 1544aa8ab4a80d529a001e27b473645f2caec87c)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 500c66337c7cb5e3044a02ef761097713e47f523)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
See the problems in http://bugs.python.org/issue1692335, need to set self.args
correctly.
(From Poky rev: d4b4b48addfa781d7b94965e0477974c3fb6dbb3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 94faffdaf6c13ce59987aab28383d66a9a0bf100)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
and bug fix the code
(From Poky rev: 37624b97450f2ba3d6fad3e1e51818486451447e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: ded83ffc3bd86553c9b540795660985905c925ba)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 7202a77134029cb37540c785ce0161a4dd574853)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 8f2abf4a9f000d42e98c4936e393bd5033a1af48)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
'Fetch' class
(From Poky rev: ca7adf75295c2a6041b891bfa61e0b4bc2f7c860)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 08a9fef4fa0036708f29bd150d7ecf66354e5475)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 806d1c25f8ca8ab5116652e6f82f7d9ee5774278)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: f60d9d6bd4bb7691b62bf1f4b1fbeaa1faa53879)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
belong in the FetchMethod class
(From Poky rev: 831c6c1d3c23c50f9c55a6bbf8dc6311bca3881b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: ab0dd1397491478ee6149283e5ba8775dd8cdc3b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Drop some old md5 functions since we have improved functionality now which includes
sha256 checksum support. This stops each download being md5 checksumed twice.
Also change ".md5" stamp extentions to ".done" to better describe its use as a
download complete marker file and no longer write the md5 sum to the files.
(From Poky rev: 74b71864fed79ce60e721945c8e239b3ebf49200)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
functions for common operations where possible
(From Poky rev: d08397ba4d1331993300eacbb2f78fcfef19c1cf)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
BBFetchException class
(From Poky rev: f6eefb3ca3bb2a5ea0ec1364bdb0bc41ae58c815)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 8daab5b95157dda6854fe6bf1929f911fe3cf25e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 7e4fbfc1c1887a1a0507b60244aa53b8b1994edd)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 49a022d25d35115e7286e2ca2530566da2d71aa8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 5a52cb80d6d62c704692ad6cfa93426c4a17bc52)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
(From Poky rev: 0e5404cedadaea6738ef6468d7eb8a24d23d9bab)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|
|
Since local mirror fetches are always symlinked from the download directory
directly, there is no need for this premirrors hack which doesn't cover
mirrors and also abuses the localpath variable with inconsistent results.
(From Poky rev: 282a828f3dc373d8f1397827ebbe1be1c54f2d2a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
|