1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 09:46:19 +02:00
Commit Graph

78 Commits

Author SHA1 Message Date
Michal Vyskocil
419367fca3 python3 compatibility: urllib
fixes all renames in urllib, urllib2, urlparse modules in python3
2013-04-16 10:51:42 +02:00
Michal Vyskocil
7f2031558c python3 compatibility: print function
The most visible change in python3 - removal of print statement and all
the crufty
   print >> sys.stderr, foo,

The from __future__ import print_function makes it available in python
2.6
2013-04-16 10:51:41 +02:00
Michal Vyskocil
0dcbddbafe python3 compatibility: new syntax for literals
The octal literals got a new syntax 0755 -> 0o755
2013-04-16 10:51:18 +02:00
Michal Vyskocil
c612e8d47e python3 compatibility: use relative imports
Use relative imports when using module's own modules - this makes a
clear distinction between already developed copy and installed package.
2013-04-16 10:51:18 +02:00
Michal Vyskocil
3a93ac6d10 python3 compatibility: except
changes 'except FooError, fe' to 'except FooError as fe'

available in python 2.6
2013-04-16 10:51:17 +02:00
Michal Vyskocil
d3648be24b python3 compatibility: dict
this patch
 1.) removes the iteritems/itervalues, which were dropped in py3
     items/values are used instead
 2.) add an extra list() in a cases the list-based access is needed
     (included appending, indexing and so)
 3.) changes a sorting idiom in few places
     instead of
     foo = dict.keys()
     foo.sort()
     for i in foo:

     there is a recommended

     for i in sorted(dict.keys()):
 4.) in one occassion it removes a if dict.has_key() by simpler
   dict.get(key, default)
2013-04-16 10:51:17 +02:00
b0ddb63432 - Abort when the server is not answering with 200 or 404 when downloading _pubkey files
- really use the internal rpm signature check
2013-03-19 17:17:14 +01:00
Marcus Huewe
161b9ca274 - Fetcher.__fetch_cpio: split cpio request into smaller requests if the server returns code 414 2012-10-10 17:05:26 +02:00
Michael Schroeder
8df38af7e3 support archlinux builds 2012-04-03 16:00:06 +02:00
Stephan Kulow
b1502a5715 support buildinfos with binary present - and don't die with XML 2012-02-22 13:28:19 +01:00
511ebf9d89 - don't say to download cpio (why just one package ?;) 2011-09-30 07:42:57 +02:00
Egbert Eich
db2e538efd Sanitize file permissions for downloaded files.
Downloaded files may not have read permission for everybody.
This doesn't seem to be a problem since the user as well as
root should be able to read them anyhow. This is true unless
the directory where the cache resides is mounted over nfs
with root_squash.

Signed-off-by: Egbert Eich <eich@suse.de>
2011-08-16 11:33:56 +02:00
Ludwig Nussel
208230bc58 fix --no-init 2011-02-22 11:17:26 +01:00
Marcus Huewe
ef06aa26cf - fixed #665784 ("osc build --offline doesn't work for key verification") 2011-01-30 00:01:48 +01:00
Marcus Huewe
5b25135dea - enable cpio bulk download by default
- removed option --cpio-bulk-download
- added new option --disable-cpio-bulk-download (to disable the default cpio
  bulk download)
2010-09-07 16:08:05 +02:00
Marcus Huewe
29a97d17f8 - fixed indention 2010-09-07 16:06:50 +02:00
Marcus Huewe
814a383ed0 - fetch.py: check if we got all packages (--cpio-bulk-download is used) 2010-09-06 14:28:39 +02:00
Marcus Huewe
b3e538be90 - now product builds should work with "--cpio-bulk-download"
- util/rpmquery:
  * added new methods "is_src", "is_nosrc" to check if the package is
    a src rpm or nosrc rpm
  * fixed "canonname": this never worked for src- or nosrc rpms
- minor code restructuring

Note:
in order to fetch the cpio archives osc uses "getbinarylist". The
drawback is that "getbinarylist" doesn't generate an ".errors" file
if we're requesting a non-existent filename.
2010-09-06 14:13:35 +02:00
Michal Čihař
48da9e2b71 Print http debugging to stderr. 2010-08-30 13:13:20 +02:00
Ludwig Nussel
3d610e6e0b ignore gpg key import errors
Some projects use the same gpg key. To avoid osc from quitting when
building against two or more such projects at the same time ignore
gpg key import errors as long as at least one key could be imported.
2010-08-17 15:16:00 +02:00
Marcus Huewe
03ad610caf - move 'builtin_signature_check' into conf module 2010-08-16 16:06:17 +02:00
Ludwig Nussel
40503680c1 tweak output about used keys 2010-08-04 15:14:37 +02:00
Ludwig Nussel
f0e1e1c7b1 fetch project keys always to catch changed ones 2010-08-04 15:00:08 +02:00
Ludwig Nussel
d3a4119bc8 turn on built in signature check 2010-08-03 16:53:03 +02:00
Marcus Huewe
513d984c76 - print name of the missing key 2010-05-27 21:44:35 +02:00
Marcus Huewe
41b2d79b90 - osc build: don't fail if a server isn't reachable 2010-05-06 22:40:35 +02:00
Ludwig Nussel
34045ec999 display cpio download message immediately 2010-04-28 11:52:14 +02:00
Ludwig Nussel
3a1fc67698 unlink key file in case of failure 2010-04-19 13:59:30 +02:00
Marcus Huewe
d2ea7472cd - raise an appropriate exception if a package is missing and --no-init or --offline is specified 2010-04-17 15:29:03 +02:00
Jan-Simon Möller
7b5e9374d2 Add support for --preload and --offline to osc build.
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2010-04-17 13:07:15 +02:00
Marcus Huewe
95ec7dee7b - fixed #590606 ("osc/fetch.py does not support authenticated URLs")
bye bye urlgrabber.grabber.URLGrabber: now we're using our own "grabber" object
(OscFileGrabber()) because this way we can reuse the urllib2 handlers (the latest
python-urlgrabber version uses python-curl instead of urllib2...).
2010-04-07 03:06:03 +02:00
Marcus Huewe
af273d0bdb - fixed #590611 ("'osc build' uses incorrect filename for debian debs") 2010-03-24 13:20:09 +01:00
Juergen Weigert
8b3e24cd0e dependency counter fixed. done += 1 needs to be indented correctly. 2010-03-09 02:28:07 +01:00
Stephan Kulow
d6968933ee changing some strings in the name of mls 2010-03-05 12:54:12 +01:00
Pavol Rusnak
9f6901b4ff missed two renames 2010-02-28 02:41:26 +01:00
Ludwig Nussel
47138ecf2b don't catch IOError to produce backtrace that points at cause 2010-02-25 13:37:24 +01:00
Ludwig Nussel
29779c34db fix indentation 2010-02-25 13:37:24 +01:00
Marcus Huewe
f16cc7e667 - convert tabs to spaces... 2010-02-24 20:02:52 +01:00
Ludwig Nussel
99d3147519 stub for implementing trusted projects 2010-02-24 14:09:49 +01:00
Ludwig Nussel
8f1024eca1 try parent project if key is not available 2010-02-24 14:09:49 +01:00
Ludwig Nussel
8fb9669ae4 verify files using rpm bindings and keys supplied by buildservice
The build service is not ready for that yet. Almost all projects
that are not built but only imported to the build service have wrong
keys. To enable the new code set builtin_signature_check in .oscrc. You
may need to manually overwrite wrong _pubkey files in the
packagecachedir with correct keys until the build service is fixed.
2010-02-24 14:07:33 +01:00
Pavol Rusnak
b95a074fc2 gpg signkey -> osc signkey 2010-02-24 13:39:53 +01:00
Ludwig Nussel
d5ae3ef2b4 command line options for cpio (default=off) 2010-02-12 11:23:03 +01:00
Ludwig Nussel
daf3516d1c add fetch-cpio support again
This partially reverts commit 0b60db740c.
2010-02-12 11:23:03 +01:00
4a18c18d34 do not point to keyservers for gpg key. They don't get exported by default. 2010-02-11 20:59:32 +01:00
Marcus Huewe
de84575ab0 - don't read all rpm/deb tags/fields by default 2010-01-14 19:51:09 +01:00
0b60db740c * Revert fetch-cpio support for now, too many complains due to broken
product building atm.
* add --link-source option for "osc build" to speed up product building
2009-12-09 06:53:27 +01:00
8ed237141a fix file descriptor leak (make it possible to handle more than 1024
packages).
2009-12-01 08:46:54 +00:00
Jürgen Weigert
e09d83c772 all *.py: TABS to spaces; osc build: counting packages during cache filling 2009-11-10 00:56:52 +00:00
Marcus Hüwe
fbf2e669b4 - yet another fix for python24 2009-11-06 21:15:58 +00:00