1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00
Commit Graph

540 Commits

Author SHA1 Message Date
Ludwig Nussel
2f4de7c63b restore mtime handling for getbinaries 2010-05-12 15:56:33 +02:00
Marcus Huewe
e010e46b2b - "run_pager()": cleanup + fixed isatty() call 2010-05-09 21:47:21 +02:00
Marcus Huewe
4273114ac1 - cut *.changes message after 30 lines (as request by darix) 2010-05-09 21:36:51 +02:00
Marcus Huewe
d35d073c1e - simplify "get_commit_message_template()" 2010-05-09 21:06:00 +02:00
Danny Kukawka
23274b58d4 check if stdout is a tty before call pager
Check if stdout is a tty before call pager otherwise simply
print the text out.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:30 +02:00
Danny Kukawka
5a19362570 add run_pager() and make osc log/diff work like git log/diff
Added new function run_pager() to get 'osc log/diff' work like
'git log/diff' which send the output to PAGER (which is by default:
less or what's defined in the environment).

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:30 +02:00
Danny Kukawka
d706d129ec fix some more close() statements
From 1f9b748c733624e86777173a3fff399d622073b8 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka@web.de>
Date: Fri, 30 Apr 2010 17:24:04 +0200
Subject: [PATCH] fix some more close() statements

Fixed warning from pychecker by fixing some close() statements.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-03 22:33:56 +02:00
Danny Kukawka
6467c23bdc fixed warning from pychecker
From 208250448c5d438f3906879993013ee126152ce2 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka@web.de>
Date: Fri, 30 Apr 2010 17:45:41 +0200
Subject: [PATCH] fixed warning from pychecker

Fixed warning from pychecker: 'Comparisons with True are not necessary
and may not work as expected'

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-03 22:33:56 +02:00
Ludwig Nussel
ad238df8bd build result may have no status 2010-05-03 10:54:19 +02:00
Marcus Huewe
6a83f2e3f0 - store tmpfiles in the default tmpdir
- minor cleanup
2010-04-30 15:14:00 +02:00
0042855237 fix creation of package link, when target project has the package via linked project.
We might have this also in other places, it is not enough anymore to check for the
existens of a package _meta file, we need also to check the "project" attribute, if it
really comes from this project.
2010-04-29 15:37:47 +02:00
Ludwig Nussel
59b19bd012 use common function for launching an editor 2010-04-28 11:52:15 +02:00
Ludwig Nussel
e78e4e4323 use common download code for sources and binaries 2010-04-28 11:52:14 +02:00
Marcus Huewe
d0659fb0f4 - core.request_interactive_review(): backward compatibility fix 2010-04-26 17:57:57 +02:00
4db40e23f5 support OBS 2.0 "unresolvable" state, former expansion error state is still supported. 2010-04-23 14:38:34 +02:00
Marcus Huewe
5e76b5b0c0 - fixes for old python versions 2010-04-22 20:13:58 +02:00
Marcus Huewe
887f03f4f0 - fixed read_sizelimit() 2010-04-22 20:05:40 +02:00
bf7213b768 add a --size-limit option to checkout and update.
Very usefull, if you want to ignore large tar balls over slow connections
and just want to do some spec file changes.
2010-04-22 15:27:54 +02:00
Michal Vyskocil
6c5a3738eb format_results - apply format string on each dict in results list 2010-04-20 15:43:41 +02:00
Michal Vyskocil
7f845f2c70 aliases (pac, pkg, package) in result dict 2010-04-20 15:43:41 +02:00
Michal Vyskocil
b17405d9d0 split the formating rules from get_results
The osc.core.get_results parses the xml and also construct the status
field in little bit complicate way. For future csv support it is
necessary split the xml parsing and formatting to two functions:
 * get_package_results - returns a dict containing all important
   elements
 * get_results - behave as old implementation, just do a formating only
2010-04-20 15:43:41 +02:00
Marcus Huewe
ebc341e7b1 - only offer "d(i)ff" option for submitrequests 2010-04-20 15:29:18 +02:00
Marcus Huewe
d0abff3210 - use oscerr.UserAbort() 2010-04-20 15:22:03 +02:00
Marcus Huewe
ce8ec5f555 - update version to 0.126git 2010-04-19 17:10:32 +02:00
Marcus Huewe
2d0be48eae - update version to 0.126 2010-04-19 17:00:31 +02:00
Marcus Huewe
d3a01a72c0 - do_diff()/do_rdiff(): added "--missingok" parameter
- always use "missingok=1" when showing the diff for a sr
2010-04-10 15:44:15 +02:00
Marcus Huewe
d65f0c81e4 - arghs.. the last commit was not the right fix 2010-04-09 15:57:12 +02:00
Marcus Huewe
0c96157352 - try to read the package name first in order to raise a more appropriate exception
- minor restructuring
2010-04-09 15:47:07 +02:00
Michal Vyskocil
6d23985829 attribute_branch_pkg: raise APIError instead of string 2010-04-08 11:24:13 +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
6b10a47fbc - only allow --diff for submit requests 2010-03-30 00:31:01 +02:00
Marcus Huewe
3c695d427f - fixed addfile() 2010-03-25 20:08:03 +01:00
Michal Vyskocil
13e03dd359 osc rm: ignore IOError with --force 2010-03-22 11:07:10 +01:00
Marcus Huewe
3bd8570dc9 - use a list instead of a generator object otherwise the build fails on SLES_9 2010-03-21 23:40:13 +01:00
Juergen Weigert
0b88d1b902 Oops, I did not mean to revert coolo's fix. Sorry. 2010-03-20 12:59:32 +01:00
Juergen Weigert
ad5b23d975 added 'bse' as a shortcur for 'search --binary' 2010-03-20 12:27:27 +01:00
Marcus Huewe
cf2b0c182f - if the commit is interrupted always delete the upload rev 2010-03-15 20:27:21 +01:00
Stephan Kulow
54513a23de /search/package returns all meta data for the packages,
/search/package_id only returns the names - and that's all that
interests us for requests.
before: 11s
after: 5s
2010-03-15 13:37:49 +01:00
Marcus Huewe
47beb996ff - minor changes 2010-03-15 13:34:38 +01:00
Stephan Kulow
8c86d1fab3 put the states first for involved projects
before: 18s
after: 11s
(possibly it matters only if you have more than your home project
in the project list)
2010-03-15 13:18:18 +01:00
Marcus Huewe
88474d392d - do_request(): added "--involved-projects" option to show all requests for project/packages where USER is involved
- code restructuring:
  * added new get_user_projpkgs_request_list() method
  * added new get_user_projpkgs() method
2010-03-13 21:06:18 +01:00
Marcus Huewe
dcd5a852d6 - core.py: added filter_role() method + other minor changes 2010-03-13 13:55:53 +01:00
Marcus Huewe
52cac96f20 - get_request_list(): use new search interface 2010-03-11 00:24:38 +01:00
Marcus Huewe
c6c9506640 - reworked do_search() and osc's search interface
- removed build_xpath_predicate()
- rewrote search()
- added xpath_join() to join two xpath expressions
- TODO: backward compatibility: currently do_search() requires a recent
  api version from git master in order to do some role filter stuff
2010-03-10 23:36:09 +01:00
Juergen Weigert
ec8bf4b60f Proofreading... it (the computer) shall not speak about itself in first person. 2010-03-09 01:40:32 +01:00
Juergen Weigert
5a97588b85 osc add now clears files from _to_be_deleted
This happens, if a file was previously deleted, and the user changes his
mind before a commit. Such an add is no longer an add, but a cancel for the
planned delete. This resulted in unexpected loss of the file, on the server, as
the message 'is already under version control' is quite misleading in this case.
2010-03-08 00:08:55 +01:00
Marcus Huewe
0dcf378060 - make store_write_* methods more safe 2010-03-04 00:31:46 +01:00
Marcus Huewe
8e7a171cf2 Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-03-02 01:34:58 +01:00
Marcus Huewe
f0d07774f4 - added "--message" option to branch cmd 2010-03-02 01:34:17 +01:00
Ludwig Nussel
8cea18e26c handle missing details gracefully 2010-03-01 13:48:27 +01:00