diff options
| author | Richard Purdie <richard@openedhand.com> | 2007-01-08 23:53:01 +0000 | 
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2007-01-08 23:53:01 +0000 | 
| commit | f5665d5bfcfb13d01da9e4c7d5046453e80f7baf (patch) | |
| tree | b8908549afaf3006bf3763419711090ac999c2a4 /bitbake/lib/bb/fetch | |
| parent | aec95de5f7dca2afa3a4a0bdb0d4d553c13f680d (diff) | |
| download | openembedded-core-f5665d5bfcfb13d01da9e4c7d5046453e80f7baf.tar.gz openembedded-core-f5665d5bfcfb13d01da9e4c7d5046453e80f7baf.tar.bz2 openembedded-core-f5665d5bfcfb13d01da9e4c7d5046453e80f7baf.tar.xz openembedded-core-f5665d5bfcfb13d01da9e4c7d5046453e80f7baf.zip | |
bitbake: Sync with upstream. 
 * File licence headers were sanitised causing most of the diff. 
 * cooker.py was created from bin/bitbake. 
 * cvs fetcher port option was added
 * The -f force option was fixed to work correctly
 * Multiple entries in rrecrdeps are now handled correctly
   (allows adding do_deploy to image depends)
 
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1129 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/fetch')
| -rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 35 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/cvs.py | 41 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/git.py | 30 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/local.py | 34 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/perforce.py | 34 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/ssh.py | 46 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/svk.py | 44 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/svn.py | 43 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch/wget.py | 34 | 
9 files changed, 169 insertions, 172 deletions
| diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 3521ece76..31a4adccb 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """ @@ -6,25 +5,25 @@ BitBake 'Fetch' implementations  Classes for obtaining upstream sources for the  BitBake build tools. - -Copyright (C) 2003, 2004  Chris Larson - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA.  - -Based on functions from the base bb module, Copyright 2003 Holger Schurig  """ +# Copyright (C) 2003, 2004  Chris Larson +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Based on functions from the base bb module, Copyright 2003 Holger Schurig +  import os, re  import bb  from   bb import data diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py index 3bdac177e..bd3317166 100644 --- a/bitbake/lib/bb/fetch/cvs.py +++ b/bitbake/lib/bb/fetch/cvs.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """ @@ -7,24 +6,26 @@ BitBake 'Fetch' implementations  Classes for obtaining upstream sources for the  BitBake build tools. -Copyright (C) 2003, 2004  Chris Larson - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA.  - -Based on functions from the base bb module, Copyright 2003 Holger Schurig  """ +# Copyright (C) 2003, 2004  Chris Larson +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +#Based on functions from the base bb module, Copyright 2003 Holger Schurig +# +  import os, re  import bb  from   bb import data @@ -81,6 +82,10 @@ class Cvs(Fetch):          if "localdir" in ud.parm:              localdir = ud.parm["localdir"] +        cvs_port = "" +        if "port" in ud.parm: +            cvs_port = ud.parm["port"] +          cvs_rsh = None          if method == "ext":              if "rsh" in ud.parm: @@ -92,7 +97,7 @@ class Cvs(Fetch):              cvsroot = ":" + method + ":" + ud.user              if ud.pswd:                  cvsroot += ":" + ud.pswd -            cvsroot += "@" + ud.host + ":" + ud.path +            cvsroot += "@" + ud.host + ":" + cvs_port + ud.path          options = []          if ud.date: diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index bb517c992..c0cd27df0 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py @@ -1,25 +1,25 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """  BitBake 'Fetch' git implementation -Copyright (C) 2005 Richard Purdie - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA.   """ +#Copyright (C) 2005 Richard Purdie +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +  import os, re  import bb  from   bb    import data diff --git a/bitbake/lib/bb/fetch/local.py b/bitbake/lib/bb/fetch/local.py index 522497670..9be8f1ce4 100644 --- a/bitbake/lib/bb/fetch/local.py +++ b/bitbake/lib/bb/fetch/local.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """ @@ -7,24 +6,25 @@ BitBake 'Fetch' implementations  Classes for obtaining upstream sources for the  BitBake build tools. -Copyright (C) 2003, 2004  Chris Larson - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA.  - -Based on functions from the base bb module, Copyright 2003 Holger Schurig  """ +# Copyright (C) 2003, 2004  Chris Larson +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Based on functions from the base bb module, Copyright 2003 Holger Schurig +  import os, re  import bb  from   bb import data diff --git a/bitbake/lib/bb/fetch/perforce.py b/bitbake/lib/bb/fetch/perforce.py index 88acf6995..125eb99aa 100644 --- a/bitbake/lib/bb/fetch/perforce.py +++ b/bitbake/lib/bb/fetch/perforce.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """ @@ -7,24 +6,25 @@ BitBake 'Fetch' implementations  Classes for obtaining upstream sources for the  BitBake build tools. -Copyright (C) 2003, 2004  Chris Larson - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA. - -Based on functions from the base bb module, Copyright 2003 Holger Schurig  """ +# Copyright (C) 2003, 2004  Chris Larson +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Based on functions from the base bb module, Copyright 2003 Holger Schurig +  import os, re  import bb  from   bb import data diff --git a/bitbake/lib/bb/fetch/ssh.py b/bitbake/lib/bb/fetch/ssh.py index e5f69e33e..81a9892dc 100644 --- a/bitbake/lib/bb/fetch/ssh.py +++ b/bitbake/lib/bb/fetch/ssh.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  ''' @@ -11,29 +10,32 @@ IETF secsh internet draft:      Currently does not support the sftp parameters, as this uses scp      Also does not support the 'fingerprint' connection parameter. -Copyright (C) 2006  OpenedHand Ltd. - -Based in part on svk.py: -    Copyright (C) 2006 Holger Hans Peter Freyther -    Based on svn.py: -        Copyright (C) 2003, 2004  Chris Larson -        Based on functions from the base bb module: -            Copyright 2003 Holger Schurig - - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. +''' -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. +# Copyright (C) 2006  OpenedHand Ltd. +# +# +# Based in part on svk.py: +#    Copyright (C) 2006 Holger Hans Peter Freyther +#    Based on svn.py: +#        Copyright (C) 2003, 2004  Chris Larson +#        Based on functions from the base bb module: +#            Copyright 2003 Holger Schurig +# +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA. -'''  import re, os  import bb  from   bb import data diff --git a/bitbake/lib/bb/fetch/svk.py b/bitbake/lib/bb/fetch/svk.py index 29270ab3d..d863ccb6e 100644 --- a/bitbake/lib/bb/fetch/svk.py +++ b/bitbake/lib/bb/fetch/svk.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """ @@ -6,33 +5,26 @@ BitBake 'Fetch' implementations  This implementation is for svk. It is based on the svn implementation -Copyright (C) 2006 Holger Hans Peter Freyther - -GPL and MIT licensed - - - -Classes for obtaining upstream sources for the -BitBake build tools. - -Copyright (C) 2003, 2004  Chris Larson - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA.  - -Based on functions from the base bb module, Copyright 2003 Holger Schurig  """ +# Copyright (C) 2006 Holger Hans Peter Freyther +# Copyright (C) 2003, 2004  Chris Larson +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Based on functions from the base bb module, Copyright 2003 Holger Schurig +  import os, re  import bb  from   bb import data diff --git a/bitbake/lib/bb/fetch/svn.py b/bitbake/lib/bb/fetch/svn.py index ebd5bebab..21be1412a 100644 --- a/bitbake/lib/bb/fetch/svn.py +++ b/bitbake/lib/bb/fetch/svn.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """ @@ -6,29 +5,29 @@ BitBake 'Fetch' implementations  This implementation is for svn. It is based on the cvs implementation. -Copyright (C) 2004 Marcin Juszkiewicz - -Classes for obtaining upstream sources for the -BitBake build tools. - -Copyright (C) 2003, 2004  Chris Larson - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA.  - -Based on functions from the base bb module, Copyright 2003 Holger Schurig  """ +# Copyright (C) 2004 Marcin Juszkiewicz +# +#   Classes for obtaining upstream sources for the +#   BitBake build tools. +#   Copyright (C) 2003, 2004  Chris Larson +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Based on functions from the base bb module, Copyright 2003 Holger Schurig +  import os, re  import sys  import bb diff --git a/bitbake/lib/bb/fetch/wget.py b/bitbake/lib/bb/fetch/wget.py index 9c9c1675a..2d590ad0b 100644 --- a/bitbake/lib/bb/fetch/wget.py +++ b/bitbake/lib/bb/fetch/wget.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python  # ex:ts=4:sw=4:sts=4:et  # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-  """ @@ -7,24 +6,25 @@ BitBake 'Fetch' implementations  Classes for obtaining upstream sources for the  BitBake build tools. -Copyright (C) 2003, 2004  Chris Larson - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU General Public License as published by the Free Software -Foundation; either version 2 of the License, or (at your option) any later -version. - -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License along with -this program; if not, write to the Free Software Foundation, Inc., 59 Temple -Place, Suite 330, Boston, MA 02111-1307 USA.  - -Based on functions from the base bb module, Copyright 2003 Holger Schurig  """ +# Copyright (C) 2003, 2004  Chris Larson +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Based on functions from the base bb module, Copyright 2003 Holger Schurig +  import os, re  import bb  from   bb import data | 
