Dr. Peter Poeml
c2c406aab2
submitreq: adjust to renamed API calls and XML ("merge" -> "submit")
2008-03-20 19:17:40 +00:00
Marcus Hüwe
303e5dcffc
- all necessary auth-information are available in the 'auth_dict' (so there's no need to fool around with the ConfigParser...)
2008-03-18 13:51:57 +00:00
Marcus Hüwe
3c3e961f4e
- minor fix in createPackageDir
...
- osc mkpac only works when 'do_package_tracking' is enabled
2008-03-17 23:43:32 +00:00
Marcus Hüwe
3fdf758dbb
- do_repos() should work in a project dir too
2008-03-17 23:24:28 +00:00
Dr. Peter Poeml
2493ea555a
- copypac: do a server-side copy (via a single api call) when
...
used with -s / --server-side.
This might be the default behaviour later.
An option to specify the source revision is missing yet.
2008-03-17 21:46:42 +00:00
Dr. Peter Poeml
8ce42e2dd9
change osc.core.pretty_diff() to call makeurl() with a query dict
2008-03-17 21:39:27 +00:00
Dr. Peter Poeml
140a331c40
Enhance osc.core.makeurl(). This function accepts a query parameter in form of
...
a list. The query can now also be given as a dictionary, and in that case it
will be automatically urlencoded. The behaviour for a list is unchanged for
the reason of backward compatibility.
2008-03-17 21:10:34 +00:00
Dr. Peter Poeml
54c1690309
osc req: add option -a / --add-header to add arbitrary request headers
2008-03-16 20:46:16 +00:00
Dr. Peter Poeml
7b91075229
handle mmap failure on filesystems like NTFS, which may not support
...
memory mapping when mounted under Linux
2008-03-16 19:02:38 +00:00
Marcus Hüwe
5d57d7e299
- added 3 new methods:
...
* createPackageDir(): create and initialize a new package dir in
the given project.
* get_apiurl_usr(): returns the username for a certain apiurl
* get_configParser(): returns an ConfigParser() object which can be
used for parsing the ~/.oscrc file
- fixed username issues when creating a new package (the problem was
that the username for the default host was used and not the one for
that specific apiurl)
- some small fixes in the do_importsrcpkg() method
2008-03-15 22:51:37 +00:00
Marcus Hüwe
c307449167
- we only need the "<entry />" nodes - otherwise listing files of a linked package fails
2008-03-13 21:45:24 +00:00
Dr. Peter Poeml
e8899aa165
if there are no credentials for the apisrv in use (which may be specified with
...
-A on the commandline), don't try to set up config['user'] with credentials.
2008-03-13 16:15:41 +00:00
Pavol Rusnak
734973a0bd
csv exported project results now use ';' as default
2008-03-13 11:13:22 +00:00
Dr. Peter Poeml
2bf92fce75
submitreq:
...
- when requesting a submit, save the source package's revision id (looking up
what it currently is)
- give the user a way to override it, to submit an older revision
- when using show --diff, take the actual old revision into account. Thus, the
diff is against the source revision of the time of request creation.
2008-03-12 23:37:35 +00:00
Dr. Peter Poeml
6ab8fb52c7
- remove remove obsolete, commented code (do_editpac(), do_editprj())
...
- fix a small tabbing issue
2008-03-12 18:26:41 +00:00
Dr. Peter Poeml
241f528dc4
implement a submitreq 'accept' action, resulting in the respective state change
2008-03-12 18:22:11 +00:00
Dr. Peter Poeml
8fc20cfc74
...which doesn't work. There are other requests where 0-replies are possible.
2008-03-11 17:09:25 +00:00
Dr. Peter Poeml
dad51ee405
add a temporary debug path to http_debug() for bug 369176 (empty responses from api.opensuse.org)
2008-03-11 16:39:47 +00:00
Dr. Peter Poeml
3f244d4b23
remove two stray lines which sneaked into osc/build.py with the last commit
2008-03-11 15:34:42 +00:00
Jürgen Weigert
0334ea4218
add --debuginfo switch to osc build
2008-03-11 15:18:02 +00:00
Dr. Peter Poeml
c0fabfc449
merged the package-tracking branch changes r2404:3491 into the trunk.
2008-03-10 18:04:23 +00:00
Michal Marek
3613893199
better fix: use %(mapping keys)s in templates
2008-03-07 09:13:30 +00:00
Michal Marek
ad2493d496
fixed last change (r3445)
2008-03-07 09:01:13 +00:00
3e30545e7b
define bugowner by default for new project/package (just part of the
...
template, can be removed by the user)
2008-03-07 08:24:48 +00:00
Dr. Peter Poeml
d87de082c2
submitreq:
...
- rename 'refuse' -> 'decline', which is more polite.
- show: make the diff optional
- add RequestState class
- handle state history
- implement 'decline' action
2008-03-06 10:25:45 +00:00
Dr. Peter Poeml
d63779a6a4
rename the new merge requests to submit requests
2008-03-05 23:51:48 +00:00
Dr. Peter Poeml
f52458fdc5
osc mergereq show: suppress requests which are deleted or declined
2008-03-05 21:41:30 +00:00
Susanne Oberhauser
b4df120e5b
- adjust osc init docstring to new realities (osc meta instead of osc
...
createpac)
2008-03-05 21:05:17 +00:00
Dr. Peter Poeml
488e14a0d8
typo accepd -> accept
2008-03-04 23:48:34 +00:00
Dr. Peter Poeml
aec7129a9b
- add a new subcommand 'mergereq' to handle merge requests. So far, it can
...
create, list, show requests.
- internally, add a MergeReq class, and do the needed (HTTP) requests.
2008-03-04 23:41:00 +00:00
Michal Marek
6c20c7203f
fix importsrcpkg when $projectdir/.osc/_apiurl is an alternative apiurl
2008-03-03 13:51:01 +00:00
Marcus Hüwe
016c80db86
- added optional apiurl parameter to the following methods:
...
meta_exists, make_meta_url, checkRevision
if no apiurl parameter is specified the global value (conf.config['apiurl'])
will be used. This should fix bug #361764
- some small apiurl fixes in the make_diff method (the package_tracking branch already has this fix)
2008-02-18 13:44:20 +00:00
Michal Marek
3dd6ef0f71
added option --csv to 'osc prjresults' to output a CSV table
2008-02-12 12:45:06 +00:00
Dr. Peter Poeml
8d52b94a6f
- osc build: if the build fails, print out the buildroot, so it it at hand for debugging
2008-01-24 18:18:03 +00:00
Dr. Peter Poeml
63e4d8da3c
- osc build: add --no-verify, to skip the package signature verification step
2008-01-24 18:06:45 +00:00
Marcus Hüwe
0e9e76ea68
- build: use the apiurl which is stored in the storedir (.osc/_apiurl)
...
when running osc build.
This should fix bug #355144
2008-01-23 19:37:44 +00:00
Dr. Peter Poeml
646be729e7
fix display of built rpms in build.py (when did that broke??)
...
thereby fixing osc build --keep-pkgs
2008-01-22 23:49:31 +00:00
Marcus Hüwe
f8b5963c7a
- check if a project exists before initializing the project dir
2008-01-18 10:35:57 +00:00
Marcus Hüwe
2e263514f8
- return a list instead of a tuple (this was already fixed in the packaging-branch)
2008-01-17 19:33:02 +00:00
Marcus Hüwe
a8788c2c4e
- added revision option to do_cat()
2008-01-15 18:58:58 +00:00
Marcus Hüwe
c6249087f9
fixed typo: borken -> broken
2008-01-11 16:44:08 +00:00
Marcus Hüwe
5306a78503
- added two new options to osc build:
...
* --local-package: use this option if you're trying to build a
package which doesn't exist on the server
* --alternative-project <project>: use this option to specify an
alternative project if the current project doesn't exist on the
server, e.g.: osc build [OPTS] --alternative-project openSUSE:10.3 standard i586 BUILD_DESCR
- some other minor cleanups in build.py
- get_repos_of_project() is now a generator function
2008-01-07 14:54:31 +00:00
Marcus Hüwe
53e1640b1e
- added new command "remotebuildlog" to show the buildlog of a package
...
(you don't have to checkout the package to view the buildlog)
- renamed "get_log()" to "get_buildlog" to avoid any confusion with
"get_commitlog()"
- added new method "print_buildlog()" which prints out the buildlog on the
standard output
2008-01-03 22:10:16 +00:00
Marcus Hüwe
5242289d3d
- do_cat(): do not print a newline (strip the trailing '\n' from string)
2007-12-13 12:00:16 +00:00
Marcus Hüwe
dbfcb32435
- fixed bug #347377
...
- other minor fixes in make_diff()
2007-12-13 11:31:31 +00:00
Dr. Peter Poeml
6781119d43
- cat: simplify the code a bit; don't print header and footer lines
...
- unification of the help output of some commands
2007-12-10 14:23:58 +00:00
Dr. Peter Poeml
7826163ca2
bugfix in build: in order to verify package signatures, run the external rpm
...
command with en_EN locale, because the output is being parsed
2007-12-10 14:10:40 +00:00
Dr. Peter Poeml
aca6c6979e
cat: fix the test if the file is binary, which swallowed the first 4098 bytes
2007-11-30 10:28:00 +00:00
Dr. Peter Poeml
9aafba838f
improve wording in rdiff documentation
2007-11-29 17:32:52 +00:00
Dr. Peter Poeml
620bc2ea68
add rdiff subcommand, to allow server-side diffs between arbitrary packages
2007-11-29 17:22:57 +00:00
Marcus Hüwe
d4bfd42bb4
- copied init_project_dir() method from the osc-package-tracking branch (just removed the do_package_tracking stuff)
...
- checkout an empty project instead of doing nothing
2007-11-29 12:54:07 +00:00
Marcus Hüwe
7b9f85f97f
- reworked the diff functionality:
...
* some new things like showing newly added files
* moved the whole code into a new methode (make_diff())
* behave more like svn when doing a diff against a certain revision
- changed the storedir attribut of the Package() class to an absolute
filename - normally this shouldn't have any impact on existing methods, functionality etc.
2007-11-26 18:13:51 +00:00
Marcus Hüwe
5518e15673
- make sure that the package meta has a <person> element and remove
...
all <person> elements from the orginal package (this change affects
{link,aggregate,copy}_pac).
Patch from Michal Marek <mmarek@suse.cz> - thanks!
2007-11-09 18:03:19 +00:00
Marcus Hüwe
69e3fd1d4e
- added new "cat" command to print a file on the standard output
2007-11-02 18:18:30 +00:00
Dr. Peter Poeml
675901bc5d
- aggregatepac: new command, similar to linkpac. Patch from Pavol Rusnak.
...
- prjresults: for newly added packages, build status may be missing. Cope with that.
2007-10-30 13:45:54 +00:00
Dr. Peter Poeml
420b9cf25c
bump version to 0.99; update NEWS file
2007-10-30 11:47:06 +00:00
Marcus Hüwe
db692ce10e
- fixed bug #259711 (do not create dirs for non-existing packages during checkout)
2007-10-27 20:19:12 +00:00
Marcus Hüwe
42e128687d
- added --build-failed and --broken options to the do_wipebinaries()
...
method (this also fixes bug/enhancement #335498 )
2007-10-27 19:13:24 +00:00
Marcus Hüwe
d0b0b1bdb5
enabled deletion of packages as the backend now supports it.
2007-10-13 23:15:49 +00:00
Marcus Hüwe
69b7e3bfc7
added a bit more functionality to do_maintainers. It is possible to add and delete users from a project/package
2007-09-12 18:01:13 +00:00
Dr. Peter Poeml
bd9ae2fd05
print the list of URL to try, when in HTTP debug mode
2007-09-10 12:22:13 +00:00
Marcus Hüwe
40d2ce205e
- added verbose option to do_maintainers:
...
* it basically lists some more information about
each maintainer
- replaced get_user_email() with get_user_data()
2007-09-03 16:18:37 +00:00
Dr. Peter Poeml
9ce40d4bab
- build: allow to use lbuild, a compatible replacement for build
2007-09-03 14:52:45 +00:00
Dr. Peter Poeml
459651ed60
make osc call build with --changelog option, by default [ #298436 ]
2007-09-03 10:25:18 +00:00
Dr. Peter Poeml
27cee26d4a
new command 'maintainer'
2007-09-03 10:17:26 +00:00
Dr. Peter Poeml
1546410722
add get_user_email() function to osc/core
2007-09-03 10:17:04 +00:00
Dr. Peter Poeml
70524c88c7
fix typo in error message in do_importsrcpkg()
2007-08-27 18:02:53 +00:00
Dr. Peter Poeml
a3a2667742
- change conf.get_config() to take three optional override values:
...
get_config(override_conffile = None,
override_http_debug = None,
override_apisrv = None)
Thus, it should be possible to use the osc module with one simple
conf.get_config() call. It is no longer required to set up the api url in the
config dict, and call conf.init_basicauth().
2007-08-22 10:18:25 +00:00
Dr. Peter Poeml
106645a87b
allow to specify a different config file via the environmental variable OSC_CONFIG
2007-08-22 08:30:53 +00:00
Dr. Peter Poeml
0da80f0fd9
- core: add get_binary_file(), with contribution from James Oakley
...
- ls command: add -b option to list binaries
- req command: show error response also for 404 responses
2007-08-16 18:15:08 +00:00
Dr. Peter Poeml
409e46c3b0
- add get_binarylist_published()
...
- no need for StringIO'ifying the file object
- remove a comment
2007-08-16 17:12:46 +00:00
Dr. Peter Poeml
458eb4f514
add get_binarylist() function. Works per project and per package
2007-08-16 10:28:32 +00:00
Marcus Hüwe
02d77c4bda
fixed "osc build" if $BUILD_DIST is set
2007-08-15 19:28:08 +00:00
Dr. Peter Poeml
6c84b42333
bump version to 0.98
2007-08-14 11:49:43 +00:00
Dr. Peter Poeml
da6f6c4a8a
build: add --changelog option to force update of the package changelog from a changes file
2007-08-14 11:26:13 +00:00
Dr. Peter Poeml
cdf91d7f39
commit: use the documented commit method by default now
2007-08-14 10:30:39 +00:00
Dr. Peter Poeml
5cd1ace719
don't hardcode 'package' query parameter into show_results_meta()
2007-08-11 12:29:38 +00:00
Dr. Peter Poeml
6298267101
meta: remove notion of non-implemented --create switch. give example for meta pkg usage
2007-08-09 16:15:13 +00:00
Dr. Peter Poeml
929fe9b12c
search: add --repos-baseurl option
2007-08-09 11:35:08 +00:00
Marcus Hüwe
d75d98da50
fixed possible "UnboundLocalError". Thanks to judas_iscariote for spotting this issue!
2007-08-08 19:48:38 +00:00
Marcus Hüwe
003c3dad5b
fixed two small typos
2007-08-08 15:44:14 +00:00
Dr. Peter Poeml
a5b0a50d28
https_proxy is not supported by urllib2. It only leads to an error or, at best,
...
a warning. Thus, unset https_proxy and HTTPS_PROXY in the environment, so
urllib2 doesn't trip over it.
https://bugzilla.novell.com/show_bug.cgi?id=214983
https://bugzilla.novell.com/show_bug.cgi?id=298378
2007-08-08 13:24:52 +00:00
Marcus Hüwe
4c136424fb
fix for "osc prjconf <project> -e".
2007-08-04 21:11:31 +00:00
Marcus Hüwe
9921478c37
changed default behaviour of importsrcpkg(). The files will not be committed by default. To commit them use the --commit switch.
2007-07-30 18:11:52 +00:00
Marcus Hüwe
d6bdc3712f
- some more work on importsrcpkg():
...
* by default the new files will be comitted
(if it is a new package or if there are no
source files on the server)
* added --disable-commit option switch to
import the package only locally
* added --delete-old-files option switch to
delete old files from the server.
- some changes in the Package class:
* extended existing commit() method to do
all the commit work (before it was done
in the do_commit() method).
* moved stuff from the constructor into a
new method (update_datastructs()).
2007-07-30 11:12:42 +00:00
Marcus Hüwe
155d60cfa0
use rpm-python to detect the "Name:", "Summary:", "%description" of a (s)rpm.
...
This change speeds up some things
2007-07-29 15:27:27 +00:00
Dr. Peter Poeml
8316936fa5
allow to import source rpms by specifying an URL
2007-07-25 12:21:46 +00:00
Dr. Peter Poeml
633fd2c10f
simplify do_importsrcpkg()
2007-07-25 12:14:32 +00:00
Dr. Peter Poeml
8fe9ac2ed1
add req command to issue arbitrary requests to the API
2007-07-25 10:56:04 +00:00
Dr. Peter Poeml
30b82a050e
expand tilde to users home for packagecachedir in .oscrc [ #293675 ]
2007-07-24 10:46:03 +00:00
Dr. Peter Poeml
31953fbbe4
append missing newline if do_commits=False [ #293672 ]
2007-07-24 10:35:08 +00:00
Marcus Hüwe
63d6dede67
make delete_package() and delete_project() more userfriendly (added trivial exception handling..)
2007-07-23 16:31:02 +00:00
Marcus Hüwe
f36e3133c7
- added new importfromsrcpkg command:
...
* now a package can be imported from a
src.rpm
* thanks to Peter for his is_rpm() and is_srcrpm()
methods
- split out some methods into smaller ones (so they
can be reused for other tasks)
- added some new methods for unpacking a src.rpm
- changed read_meta_from_spec() method to be more
flexible (it is possible to specify the tags and
sections).
2007-07-23 16:03:30 +00:00
Dr. Peter Poeml
de9faebefe
- meta: add --delete switch to delete pattern files
...
- complete last fix (don't implicitely add .xml to pattern files) -- forgot to
commit the part in osc/core.py.
2007-07-19 12:23:42 +00:00
Dr. Peter Poeml
1945a7a683
- fix indentation (enforceming pattern file argument)
...
- don't implicitely add .xml to pattern files -- it will probably cause
confusion.
2007-07-19 11:54:13 +00:00
Dr. Peter Poeml
a9dbc4bb1d
fix error message which osc issues if build package is too old
2007-07-19 10:49:30 +00:00
Dr. Peter Poeml
ad9517cb81
meta: extend usage info for 'meta pattern'
2007-07-19 10:14:10 +00:00
Dr. Peter Poeml
04bd877a59
- meta: allow for editing patterns
...
# list patterns:
osc meta pattern <prj>
# show pattern foo:
osc meta pattern <prj> foo
# edit pattern foo:
osc meta pattern <prj> foo -e
2007-07-19 10:08:42 +00:00
Dr. Peter Poeml
b1ca1e46ab
results: result code can be empty when package has just been created
2007-07-19 07:42:19 +00:00
Dr. Peter Poeml
513255ccf7
fix name of 10.2 product in the template for new projects
2007-07-18 16:49:02 +00:00