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

1592 Commits

Author SHA1 Message Date
Marcus Huewe
e29b227b5b - do_status: added '--show-excluded' option to show all files (except the store dir)
Additionally "osc st" doesn't show dirs anymore if it's called from
a package wc because dirs cannot be added to a package
2010-08-11 18:05:12 +02:00
Marcus Huewe
ba4b0d3c20 Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-08-11 12:52:48 +02:00
Marcus Huewe
2347e45a5c - fixed init_package_dir (the whole init_*_dir concept needs to be rewritten) 2010-08-11 12:50:53 +02:00
e0172293df check the right options for request and review command 2010-08-10 16:36:29 +02:00
Marcus Huewe
eada1234a9 - do_signkey: don't modify list during iteration 2010-08-08 23:45:04 +02:00
Marcus Huewe
b213b9695b - a more generic version of ebd4b1d893 (the same logic applies to *.dsc, *.kiwi) 2010-08-08 23:15:25 +02:00
Marcus Huewe
85d3391bd4 - support signing state (patch by srinidhi@novell.com) 2010-08-08 21:09:18 +02:00
1244308d47 "osc sr" used for an entire project is now offering also to supersed requests
when they got cloned by checking the attribute.

It does not work from package dir atm, this entire behaviour is not a good design.
But I lack a good idea how to design it better atm.
2010-08-05 17:00:45 +02:00
ef2d0aa2e9 add "request clone" command for OBS 2.1 2010-08-05 15:54:48 +02:00
1e2bbf941c fix comment message transfer for "review add" command 2010-08-05 10:24:20 +02:00
Ludwig Nussel
ebd4b1d893 prefer spec files that match the directory name only if there are no debian or kiwi files
partially reverts commit 1b6fbd7d05.
2010-08-04 17:26:59 +02:00
e3828801db Revert "set release number to zero if not specified via commandline or server otherwise"
doing it in build script

This reverts commit 336530b660.
2010-08-04 17:24:06 +02:00
5bd78d44f8 another try for prjresutls, do not show "excluded" packages/repos by default,
but show the manual disabled ones.
2010-08-04 17:16:59 +02:00
336530b660 set release number to zero if not specified via commandline or server otherwise 2010-08-04 17:02:25 +02:00
Ludwig Nussel
a4a52b62ae fix and rename osc pr --show-non-building
fix osc pr --show-non-building to actually do what it is supposed to
do. Change default to not do filtering by renaming the option to
--hide-disabled
2010-08-04 16:49:57 +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
58ce76ef8c use store_write_string for _packages file
avoids corrupted files if something goes wrong.
also pretty print the xml to make manual editing easier
2010-08-04 14:16:54 +02:00
Ludwig Nussel
118941047d another attempt to fix the init_package_dir chdir mess 2010-08-04 14:16:54 +02:00
Ludwig Nussel
ed2b8e111c fix init_package_dir (broken by commit b3c5204b59) 2010-08-04 11:21:17 +02:00
Ludwig Nussel
d3a4119bc8 turn on built in signature check 2010-08-03 16:53:03 +02:00
Ludwig Nussel
def93eb9d9 fix rq show 2010-08-03 09:35:39 +02:00
Danny Kukawka
f2788628c6 fix output of 'osc buildinfo' if parameter are missing
Fixed output of 'osc buildinfo' if parameter are missing due to change
from commit cb18807622. Show only the
available repos (and not the arch) if called from a checked out
package.
2010-07-31 13:30:26 +02:00
Danny Kukawka
57881f31a1 changed Request:list_view() to show add_role request info
Changed Request:list_view() to show add_role request info more verbose
including requested person/group and the requested role.
2010-07-31 13:30:26 +02:00
Marcus Huewe
1b6fbd7d05 - don't use spec by default if multiple build description files are found
otherwise it'll lead to unexpected behaviour if the repository is for instance
debian
2010-07-30 14:02:23 +02:00
cb3691426c add "review add" command 2010-07-30 11:36:17 +02:00
Danny Kukawka
9a519b773d added FIXME to show_package_disabled_repos 2010-07-29 17:45:13 +02:00
Danny Kukawka
db08e0b496 fixed several functions to respect 'osc -A' 2010-07-29 17:29:51 +02:00
cb18807622 do not crash via using not anymore supported /platform controller (unsupported since OBS 1.0)
Unify "repos" and "repositories" command. Make the command working at all as specified.
2010-07-29 17:04:39 +02:00
753893222a support list of open reviews 2010-07-29 13:46:56 +02:00
cff8696818 do not hide open request by default. 2010-07-29 13:39:48 +02:00
b5bd00fc8f make "osc api" syntax compatible with curl parameters 2010-07-29 11:43:56 +02:00
b4a1f83e01 * add the new "dist" command to NEWS file.
* disable the "DISCONTINUED" support for now, because this is just a hack
  which only works with one instance. We need a server side supported approach
  in case we need this.
* Show repository to be used and the suggested reponame for own project
2010-07-29 07:37:54 +02:00
Danny Kukawka
ead799632f Merge branch 'master' of gitorious.org:opensuse/osc 2010-07-28 16:05:36 +02:00
Danny Kukawka
290a3f0f90 added new command 'osc distributions'
added new command 'osc distributions' to get info about active
and discontinued distributions.
2010-07-28 16:04:27 +02:00
4c6ffb7607 prjresult: Do not show package rows or repo columnss by default which are not building at all (in disabled or excluded)
A Rudi feature ;)
2010-07-28 15:38:01 +02:00
10f4a6240d remove a file from conflict list in any case, when it gets removed 2010-07-28 12:13:46 +02:00
d128ff4601 generated service files are always to be skipped regarding status and commit 2010-07-28 12:08:40 +02:00
Henne Vogelsang
98aa12c9a3 fix links that point into the wiki
Signed-off-by: Henne Vogelsang <hvogel@opensuse.org>
2010-07-27 17:24:05 +02:00
Danny Kukawka
f338e36158 reuse apiurl instead reading it again and again from config 2010-07-27 16:06:49 +02:00
Danny Kukawka
33dc89d805 changed print_repos() to print only repos on request
Changed print_repos() to print only repos (and not repo and arch)
on request since 'osc buildinfo' needs only the repo as parameter.

Fixed do_repositories() apiurl handling and changed to get the
project from checked out project or package dir if available.
2010-07-27 14:31:12 +02:00
Danny Kukawka
eb0cb6dee9 don't raise error message after self.print_repos()
Don't raise error message after self.print_repos(), since the
message will never be printed.
2010-07-27 14:03:26 +02:00
Danny Kukawka
6712b44bee Merge branch 'master' of gitorious.org:opensuse/osc 2010-07-27 14:01:19 +02:00
Danny Kukawka
35536475e7 fixed 'osc buildconfig'
Fixed 'osc buildconfig'. Don't ask for package and arch since the
API don't allow to filter for a package or a architecture.

Remove related and useless parameter from get_buildconfig() in
core.py
2010-07-27 13:58:52 +02:00
Juergen Weigert
8830d396cb - fixed references into en.opensuse.org to honor the new wiki structure
(redirects added in the wiki for the three URLs on 'osc help' -
    all other URLs remain broken until this osc gets deployed)
2010-07-26 19:45:42 +02:00
Marcus Huewe
de884b719c - do_buildlog: show appropriate error msg if too many args are specified 2010-07-26 19:02:48 +02:00
Danny Kukawka
b3c5204b59 fixed serveral warnings from pychecker.py
Fixed serveral warnings from pychecker.py like such:
- Parameter ($) not used
- Local variable ($) not used

Including fixes like:
- remove not needed imports
- don't read apiurl in core.py from config if already available via
  function parameter
- delPerson(): check for user as e.g. in addPerson()
2010-07-26 16:46:21 +02:00
Marcus Huewe
e2ab1a520e - do_buildinfo: support --prefer-pkgs 2010-07-26 15:41:02 +02:00
14376dd2b6 fix "osc up" on broken link (as instructed by Michael ;) 2010-07-23 16:17:39 +02:00
70fb883b59 point the users to the "branch" command 2010-07-21 09:46:54 +02:00
ad28c0552e import "osc aggregate --nosources" feature, implemented by brook.hong@nokia.com 2010-07-20 14:48:27 +02:00
fd6b59cf38 do not source validate special packages which start with an underscore 2010-07-19 18:03:41 +02:00
Michal Čihař
70b3d34798 Another case of dash escaping. 2010-07-19 11:13:08 +02:00
Michal Čihař
74f583823f Fix typo. 2010-07-19 11:10:15 +02:00
3614b6a40d open 0.129 development 2010-07-18 16:28:21 +02:00
1975ddb8eb Revert "no need to warn about empty validator dir"
after discussion, we will provide an update with osc-source_validator instead

This reverts commit 828bb264ca.
2010-07-16 15:57:28 +02:00
1d49a5ea1c update NEWS file and prepare for 0.128 release 2010-07-16 15:36:07 +02:00
1faaae30f4 fix python syntax error from last commit 2010-07-14 17:28:48 +02:00
Michel Alexandre Salim
eb75d7b2f7 Use vi as the fallback editor on Fedora; vim not guaranteed to exist 2010-07-14 17:13:37 +02:00
Marcus Huewe
0fbfcb4fdb - fixed SyntaxError 2010-07-13 14:53:25 +02:00
f2be29f0a0 add signkey --extend command 2010-07-13 13:53:47 +02:00
Marcus Huewe
faad8ca0c1 - fixed import 2010-07-13 12:13:25 +02:00
Marcus Huewe
34174e301e - removed useless continue 2010-07-13 11:37:01 +02:00
Danny Kukawka
3ed00b4568 changed do_repos() to filter out disabled repos of a package
Changed do_repos() to filter out disabled repos of a package. Read
package from checked out package dir. This changes also the output
of getbinaries if args are missing and the user is within a checked
out package dir. Show only enabled repos in this case.

Allow also osc repos [PROJECT] [PACKAGE].
2010-07-12 14:56:08 +02:00
Marcus Huewe
24d5b4218a - more helpful error message if osc cannot run the pager/editor 2010-07-08 21:43:39 +02:00
Ludwig Nussel
828bb264ca no need to warn about empty validator dir
also remove from config template. the default should be ok.
2010-07-07 16:41:09 +02:00
Ludwig Nussel
a00c0c4006 allow to restrict 'my pkgs' to maintained ones 2010-07-07 16:41:09 +02:00
Michal Čihař
8e48815f54 Nothing guarantees that HTTPError has read method. 2010-07-07 16:29:59 +02:00
Marcus Huewe
9fadbb42fd - more precise error message about missing source_validator 2010-07-06 17:57:10 +02:00
Danny Kukawka
f8f448b6ba respect -A for 'osc deleterequest' 2010-07-06 14:18:24 +02:00
Danny Kukawka
bd821937f6 changed 'osc deleterequest' to get info from checked out pac/proj
Changed 'osc deleterequest' to get info from checked out package or
project dirs. Added edit message about what the user requested.
2010-07-06 14:16:24 +02:00
Marcus Huewe
582dc936cd - read_meta_from_spec: don't exit if tag/section is missing 2010-07-02 22:28:53 +02:00
Ludwig Nussel
d59942c961 support $EDITOR with arguments (bnc#619215) 2010-07-02 11:32:58 +02:00
Danny Kukawka
28441bfaeb make getbinaries also work in project dirs
Maked getbinaries also work in project dirs. If osc getbinaries
get called in a checked out package directory, the binaries for
all packages of this project get checked out.
2010-07-01 15:32:21 +02:00
Ludwig Nussel
cd51a420d7 less verbose results output by default
especially factoy results often fill the screen with lots of "blocked" errors. So don't display the details by default unless --verbose is given
2010-06-30 13:40:02 +02:00
Ludwig Nussel
14d4ece2fb allow to override apiurl for 'build' 2010-06-30 13:39:59 +02:00
Juergen Weigert
382dd29e03 Make 'trust always' more verbose, so that a user learns how to undo its effect.
Removed a few tabs.
2010-06-29 15:32:53 +02:00
Juergen Weigert
2ec85b7548 Merge branch 'master' of gitorious.org:opensuse/osc 2010-06-29 14:34:10 +02:00
Juergen Weigert
83781a59b5 request_interactive_review() should not die with stragen unicode chars.
simple workaround.
2010-06-29 14:32:22 +02:00
073e2b0517 support re-open of requests 2010-06-29 12:13:24 +02:00
Danny Kukawka
bd555225be Merge branch 'master' of gitorious.org:opensuse/osc 2010-06-28 13:57:21 +02:00
Danny Kukawka
f41d842d3e fixed tempfile leaking in osc diff function
The osc diff function leaves tempfiles in /tmp after finished.
Call os.unlink() to remove the file if no longer needed.
2010-06-28 13:00:34 +02:00
Ludwig Nussel
5270e13baf implicitly trust the project we are building for 2010-06-28 10:55:38 +02:00
Jan Engelhardt
6eea5f188b Add can_also_build definitions for SPARC
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
2010-06-28 09:07:38 +02:00
Jan Engelhardt
150cdebf6d osc/commandline: fix reoccurring typo
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
2010-06-28 08:41:21 +02:00
Danny Kukawka
1438ca5c1b Merge branch 'master' of gitorious.org:opensuse/osc 2010-06-27 21:21:08 +02:00
Danny Kukawka
260cb3ab00 extended 'osc wipebinaries' to read package/project from dirs
Extended 'osc wipebinaries' to read package/project from checked out
directories if possible.
2010-06-27 19:07:46 +02:00
Ludwig Nussel
377ee28887 add support for --oldpackages 2010-06-25 11:23:44 +02:00
Ludwig Nussel
c303735ab1 implement trusted projects 2010-06-23 14:47:52 +02:00
Ludwig Nussel
0663410f9c normalize apiurl 2010-06-23 14:47:52 +02:00
Ludwig Nussel
4187a18de7 compact empty lines 2010-06-23 14:47:52 +02:00
Ludwig Nussel
da0ccd5d8c auto apiurl for osc meta 2010-06-23 14:47:52 +02:00
Ludwig Nussel
c6f770cf27 fix getbinaries --sources 2010-06-23 14:47:52 +02:00
Danny Kukawka
a9b05119d6 another fix for osc results -r/-a in project directories
Fixed osc results -r/-a in project directories by fixing filtering
of architecture and repository (they are arrays and not strings).
2010-06-21 17:10:25 +02:00
Danny Kukawka
367258f050 fixed osc results -r/-a, pass values to get_package_results()
Fixes osc results -r/-a. Don't use in get_results() default
values to call get_package_results(), this makes no sense since
get_results() already defines defaults.
2010-06-18 17:55:06 +02:00
dc8fa3275a _product packages have _meta files ... 2010-06-18 11:43:42 +02:00
Danny Kukawka
1c02a1bd06 fixed some warnings from pychecker 2010-06-15 17:07:14 +02:00
Danny Kukawka
343fd89f4c fixed whitespaces in osc getbinaries help text 2010-06-15 16:38:48 +02:00
Marcus Huewe
8380602de6 - ignore tmp files from "vc" (*.changes.*) 2010-06-14 15:39:05 +02:00
Pavol Rusnak
e8d60c36a2 Revert "package cache should be in /var/cache not in /var/tmp"
This reverts commit 8d34581960.

/var/cache is not writable for everyone :-/
2010-06-09 18:00:16 +02:00
Pavol Rusnak
8d34581960 package cache should be in /var/cache not in /var/tmp 2010-06-09 17:58:29 +02:00
Michal Čihař
b2f7b6c5a1 Fix typo. 2010-06-09 14:48:11 +02:00
Michal Čihař
9f5861a3dd Whitespace fixup. 2010-06-09 14:34:04 +02:00
Michal Čihař
ca83f1f5d2 Use standard method for running editor. 2010-06-09 14:28:03 +02:00
Michal Čihař
5e817707cf Use new functions for getting default pager/editor. 2010-06-09 14:25:42 +02:00
Michal Čihař
42b5f3961d Implement functions to get defaults for editor/pager.
These are platform specific, for example on Debian we want to use
the ones provided by sensible-utils.
2010-06-09 14:25:41 +02:00
163b3e3dfa and start with 0.128 development 2010-06-09 13:00:35 +02:00
0a5cfa9c00 tag it as 0.127 2010-06-09 12:59:36 +02:00
01d349d0e8 make it possible to run local source services on checkout/update 2010-06-08 11:24:10 +02:00
c6d417d6b7 fix typo, wrong package name recommended. 2010-06-07 14:30:36 +02:00
Ludwig Nussel
2ba65c531a fix osc log without arguments 2010-06-07 09:02:00 +02:00
Marcus Huewe
513d984c76 - print name of the missing key 2010-05-27 21:44:35 +02:00
Michael Schroeder
d6a5c4c6fb - fix result query, build package list from all results 2010-05-27 17:05:59 +02:00
e4615a324b add propper error handling in case running "osc log" outside of checked out project/package 2010-05-27 07:21:33 +02:00
b0b5953b3e support history of projects via "osc log" 2010-05-27 07:17:27 +02:00
Marcus Huewe
24d3b18e13 - cleanups
- fixed do_log
- use "safe writes" in init_package_dir()
2010-05-27 02:18:00 +02:00
Marcus Huewe
f023578cf2 - cleanup the new "meta mode" a bit
currently it isn't possible to change from "meta mode" to "normal" mode
(except with some dirty hacks..)
2010-05-27 01:54:04 +02:00
4c168a2428 fix typo 2010-05-26 16:46:01 +02:00
e759edebde do not run services on "osc update" by default. 2010-05-26 16:35:45 +02:00
Juergen Weigert
9cb348ffce si.execute now uses shutil.move instead of os.rename,
in case /tmp/ is on its own filesystem...
2010-05-26 16:25:20 +02:00
Marcus Huewe
ab30951451 - fixed import warning + small cleanup 2010-05-25 18:41:15 +02:00
Marcus Huewe
beb08a0fb1 - fixed message str 2010-05-25 18:31:50 +02:00
d2dbc069b0 use correct apiurl when triggering a rebuild of local package 2010-05-25 17:50:36 +02:00
cec0374ccf support checkout of underscore packages 2010-05-25 14:54:11 +02:00
6860613ba9 harmonized osc parameters, user always "-M" for "--meta" 2010-05-25 14:54:11 +02:00
2ae9a9453a fix commit of files in meta mode 2010-05-25 14:54:11 +02:00
Marcus Huewe
c33d229953 - fixed permissions 2010-05-24 22:40:31 +02:00
brook hong
11c2f0a510 implement https://features.opensuse.org/309351 2010-05-24 19:28:44 +08:00
Marcus Huewe
3ae6d5dd07 - getbinaries: cleanup 2010-05-22 18:27:11 +02:00
1e5b0e2ffb runtime fixes for last commit 2010-05-22 08:55:39 +02:00
6cbff920dc add validation verbose mode for easier debugging 2010-05-22 08:51:04 +02:00
1700744cfa don't try to execute temporary files in validator directory 2010-05-22 08:36:15 +02:00
1e985f38e2 * offer access to deleted projects/packages
* allow checkout of meta data of packages
* process validators in sorted order
2010-05-22 08:23:09 +02:00
da0c0f6b86 support undelete of project or package 2010-05-21 19:03:20 +02:00
Juergen Weigert
3de185cc38 Improved english message text. 2010-05-21 11:29:52 +02:00
56cfff9068 do not die on helper directories 2010-05-20 18:22:20 +02:00
7e0abcd805 Make source validator moduler, execute all scripts in directory 2010-05-20 12:02:53 +02:00
e9b5ca869a support source validators as pre-checkin check 2010-05-20 06:40:18 +02:00
Pavol Rusnak
273fabb4da fix osc add 2010-05-19 15:34:59 +02:00
41f925addc allow to set a temporary comment for a review via "osc review new"
(Fate #307506)
2010-05-19 14:12:49 +02:00
beae2c0cdd when doing "osc up -e" or "osc up -u" the actual update did not happen,
because revision md5 was used from local data. Doing an update of it before.
2010-05-19 13:02:23 +02:00
87a6bf4205 approvenew is a little bit less horrible then acceptallnew, isn't it ? 2010-05-19 12:50:52 +02:00
9f65f138ed add "osc rq acceptallnew $PROJECT" command to show and accept all request in new state.
This makes sense esp. for projects which work with default reviewers before.
(like it is planned for openSUSE:Factory).
In this way the review can happen during the week, people get feedback ASAP when review
fails, but the entire rebuild does not happen before the everything get accepted.
2010-05-19 12:29:56 +02:00
a337968dcb * support branching with --force, to override existing target.
* Sorted OBS 2.0 features in NEWS file
2010-05-19 10:47:01 +02:00
e649a55120 use "checksum" to be in sync with other places 2010-05-18 16:33:11 +02:00
c1de76cc84 allow --force branch, even when target already exists 2010-05-17 20:14:49 +02:00
b397b354fe add sha256 verification for downloaded files via source service 2010-05-17 19:24:00 +02:00
390b9659fe extent command description for add 2010-05-14 16:59:45 +02:00
ac5990fbd0 register "_service" file, in case it got created 2010-05-14 16:51:38 +02:00
1ca862308b add support for obs download_url source service.
"osc add $URL" is adding a download_url source service to the package now.
This means the server is downloading the file itself, important for reviewing
version updates.
2010-05-14 16:45:58 +02:00
Marcus Huewe
1975e3cf85 - catch PackageError() 2010-05-13 18:21:30 +02:00
Ludwig Nussel
2f4de7c63b restore mtime handling for getbinaries 2010-05-12 15:56:33 +02:00
Ludwig Nussel
d292c83205 guess spec file name from current directory 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
5bfbf5b1a9 Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-05-09 21:29:42 +02:00
Marcus Huewe
d35d073c1e - simplify "get_commit_message_template()" 2010-05-09 21:06:00 +02:00
d96aff0ae7 Merge branch 'master' of gitorious.org:opensuse/osc 2010-05-08 08:04:55 +02:00
1c24457bed fix copypac with same source and destination:
If a revision is specified, this is actually a revert call and it has to work.
2010-05-08 08:03:56 +02:00
Ludwig Nussel
81824b3d04 don't die if saving repo list fails 2010-05-07 11:57:42 +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
7024449cd8 catch cpio errors
TODO: detect if returned file is XML with error code
2010-05-06 14:27:52 +02:00
Ludwig Nussel
05e0cb620b whitespace fixes 2010-05-05 09:03:51 +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
e89e61380b make sure global option -A works too in a checked out package
Make sure global option -A works too in a checked out package.
Always check if -A was passed to command line and use it
instead of the package/project dir information.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:24 +02:00
Danny Kukawka
8bdb78cc8f get apiurl for 'osc my' from checked out package
Get apiurl for 'osc my' from checked out package if possible.
Make sure that global option -A works to in a checked out
package.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:24 +02:00
Danny Kukawka
e35e161b24 added 'osc getbinaries REPOSITORY' to checkout all binaries
Added 'osc getbinaries REPOSITORY' to checkout all binaries
(incl. source package) of a REPOSITORY. New option checks out
all architectures into subdirs named as the arch.

Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
2010-05-04 08:57:20 +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
debfd71048 fix close() statement in download()
From 257d823c45b940604c8d3d992b1e1f2da3746074 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka@web.de>
Date: Fri, 30 Apr 2010 17:17:17 +0200
Subject: [PATCH] fix close() statement in download()

Fixed warning from pychecker by fixing the close()
statement in download().

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
Jan-Simon Möller
4c35566e03 Add CB(pre)install hooks to osc
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2010-05-02 19:58:01 +02:00
Ludwig Nussel
70d772e942 save log file of vm builds 2010-04-30 15:58:31 +02:00
Ludwig Nussel
af467cea2d allow to override vm type on command line 2010-04-30 15:58:31 +02:00
Ludwig Nussel
ae5d7795b4 use new build --vm-* options 2010-04-30 15:58:31 +02:00
Ludwig Nussel
cfeee1c95d store list of repos for offline use 2010-04-30 15:58:31 +02:00
Marcus Huewe
95a6643769 - minor cleanup 2010-04-30 15:25:24 +02:00
Marcus Huewe
d55c16cce4 - simplify comment:) 2010-04-30 15:19:35 +02:00
Marcus Huewe
6a83f2e3f0 - store tmpfiles in the default tmpdir
- minor cleanup
2010-04-30 15:14:00 +02:00
d02655b026 point users to xen/kvm build enviroments instead of just warning to use osc. 2010-04-30 08:58:18 +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
a0aba626b3 project and package auto detection for osc meta 2010-04-28 11:52:15 +02:00
Ludwig Nussel
34045ec999 display cpio download message immediately 2010-04-28 11:52:14 +02:00
Ludwig Nussel
cecd75db4d option to hide download meter when finished 2010-04-28 11:52:14 +02:00
Ludwig Nussel
e78e4e4323 use common download code for sources and binaries 2010-04-28 11:52:14 +02:00
Michal Vyskocil
5d2587e916 print the error message on multiple description files 2010-04-27 18:23:03 +02:00
Michal Vyskocil
f3d7b0e4fc use glob when searching the build description 2010-04-27 18:18:34 +02:00
Michal Vyskocil
6e388a266a osc branch reads project/package in package directory
The osc branch (withouth arguments) is able to read the project/package
from current package dir and use it.
2010-04-27 12:23:03 +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
Ludwig Nussel
fc27b4816b make osc rebuild pick package from working directory 2010-04-23 12:01:24 +02:00
Ludwig Nussel
367d3ce80e auto --local-package if --alternative-project is used 2010-04-23 10:46:08 +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
Marcus Huewe
4290c5143b Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-04-21 15:19:09 +02:00
Marcus Huewe
ba7993ffb0 - backward compatibility fix (only a recent api/backend supports the missingok parameter) 2010-04-21 15:18:20 +02:00
Michal Vyskocil
1325b2813a --csv/--format options for osc results 2010-04-20 15:43:41 +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
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
cbed877aa7 cleanup 2010-04-17 15:19:41 +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
Martin Mohring
6ae10228b8 changed: cross build emulation strings in build and osc are now same 2010-04-14 13:41:37 +02:00
af52098e16 consider "lxc" a secure enviroment 2010-04-14 10:18:01 +02:00
81d329c55d restore 0.125 behaviour again and do not verify packages,
if they are used in a secure VM.
2010-04-14 10:16:27 +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
Marcus Huewe
b1c06883b4 - simplify 2010-04-09 03:37:04 +02:00
Marcus Huewe
120d890807 - handle linkerrors more gracefully
- show revision
2010-04-09 01:22:26 +02:00
Marcus Huewe
42cc46ec7e - fix for osc chroot 2010-04-08 23:15:55 +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
Michal Vyskocil
a4a179f1d9 print a real content of linkinfo->project and package, not the same filelist twice 2010-04-06 11:07:56 +02:00
Michal Vyskocil
10bda9b4eb do not compare boolean with 0 2010-04-06 11:04:48 +02:00
Michal Vyskocil
c763369c17 set link_seen after meta_get_file_list
1.) not necessary to iterate through list to test the occurence of a
  string in a list
2.) removed duplicate tests
2010-04-06 11:00:45 +02:00
Ludwig Nussel
38cd884c52 remove build-vmdisk-autosetup and build-vmdisk-force 2010-03-30 14:22:06 +02:00
Ludwig Nussel
f45017a55e don't require root for kvm 2010-03-30 14:13:44 +02:00
Ludwig Nussel
b50d73b7d0 automatic vm image setup 2010-03-30 14:13:44 +02:00
Ludwig Nussel
d2a1b2eb17 allow build-type lxc 2010-03-30 14:13:44 +02:00
Ludwig Nussel
ca1bb38bbe always ask for message when branching a package 2010-03-30 14:13:44 +02:00
Marcus Huewe
6b10a47fbc - only allow --diff for submit requests 2010-03-30 00:31:01 +02:00
Marcus Huewe
ea3e5d20bf - small fixes 2010-03-28 22:23:40 +02:00
Jan-Simon Möller
35d0652d21 Add VM diskimage autosetup hooks to osc.
Signed-off-by: Martin Mohring <martinmohring@linuxfoundation.org>
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2010-03-28 21:13:04 +02:00
Martin Mohring
f37dfd6e8c added support for arm architure strings from armv4 to armv8
Signed-off-by: Martin Mohring <martinmohring@linuxfoundation.org>
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2010-03-28 21:10:14 +02:00
Marcus Huewe
3c695d427f - fixed addfile() 2010-03-25 20:08:03 +01:00
Marcus Huewe
af273d0bdb - fixed #590611 ("'osc build' uses incorrect filename for debian debs") 2010-03-24 13:20:09 +01:00
Marcus Huewe
56e728fc44 - only catch ImportError()'s 2010-03-24 11:16:20 +01:00
Marcus Huewe
dc94759aff - added "--non-interactive" option to "osc rq show" 2010-03-23 16:21:09 +01:00
Marcus Huewe
af5d75e4ef - always prefer apiurl from storedir 2010-03-23 10:04:01 +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
Marcus Huewe
4584d83dbe - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +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
fd3d0685a2 - fixed search 2010-03-18 17:57:25 +01:00
Marcus Huewe
c7c1f19445 - fix for commit 54513a23de 2010-03-17 17:32:59 +01:00
Marcus Huewe
23578e72fd - use sys.stdout.write() instead of print 2010-03-17 15:28:10 +01:00
Marcus Huewe
cf2b0c182f - if the commit is interrupted always delete the upload rev 2010-03-15 20:27:21 +01:00
Marcus Huewe
6a93a72635 Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-03-15 16:09:32 +01:00
Marcus Huewe
0ee8d82378 - added slightly modified version of Michal Marek's <mmarek@suse.cz> patch to search binary packages 2010-03-15 16:08:00 +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
4dfaad4795 - rewrote do_my()
I hope we didn't lose a feature/functionality. If you notice some unexpected
behaviour please tell me.
2010-03-13 14:06:48 +01:00
Marcus Huewe
dcd5a852d6 - core.py: added filter_role() method + other minor changes 2010-03-13 13:55:53 +01:00
Marcus Huewe
aaf5d9dfaf - backward compatibility fix: old apis don't support role filtering 2010-03-12 15:22:11 +01:00
Marcus Huewe
52cac96f20 - get_request_list(): use new search interface 2010-03-11 00:24:38 +01:00
Marcus Huewe
2e011e70d3 - updated help text 2010-03-10 23:43:04 +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
Marcus Huewe
bc1322803d - check args/options 2010-03-09 12:22:04 +01:00
Juergen Weigert
8b3e24cd0e dependency counter fixed. done += 1 needs to be indented correctly. 2010-03-09 02:28:07 +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
38c0621a90 osc ls -u -- same logic here as mls suggests for osc cat. 2010-03-08 23:52:51 +01:00
Marcus Huewe
b4364bceff - ignore trailing slashes 2010-03-08 14:09:15 +01:00
Michael Schroeder
9df5940b97 - turn option upside down for consistency 2010-03-08 10:56:29 +01:00
Juergen Weigert
4bd3d515ee suggest git, svn, ... if indicated, after oscerr.NoWorkingCopy 2010-03-08 01:52:13 +01:00
Juergen Weigert
f9855a821b "osc cat" now auto-expands through link. New option -n to suppress this. 2010-03-08 01:31:36 +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
Juergen Weigert
35bc256de0 Merge branch 'master' of gitorious.org:opensuse/osc 2010-03-07 23:10:13 +01:00
Juergen Weigert
a92a63ad4d helpful messages about non-existing remote packages never made it to the
user, as meta_exists() died with a shorter message earler.
2010-03-07 23:07:03 +01:00
Marcus Huewe
bc0cb438b8 - added "config" command to set/get/delete a config option
maybe we should move the whole config stuff into a new config object.
This would make things much easier.
2010-03-07 22:50:11 +01:00
Marcus Huewe
76cfc033a9 Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-03-07 22:44:34 +01:00
Juergen Weigert
f25bfa6ad1 made URLError readable, instead of a bogus stack-trace.
added full_url, to even give a hint about the cause.
2010-03-07 21:56:29 +01:00
Marcus Huewe
96f382f171 - added 'verbose' option to DEFAULTS dict 2010-03-06 20:14:51 +01:00
Stephan Kulow
d6968933ee changing some strings in the name of mls 2010-03-05 12:54:12 +01:00
Stephan Kulow
eb9f016338 diff3 -E is much easier to read 2010-03-05 11:45:50 +01:00
Marcus Huewe
0dcf378060 - make store_write_* methods more safe 2010-03-04 00:31:46 +01:00
f9aa6c7271 support package search with project results needed for maintained search.
This is for sure not nice, but fixes #583570 for now. (we need really to re-think
the osc search implementation)
2010-03-02 09:52:18 +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
Pavol Rusnak
9f6901b4ff missed two renames 2010-02-28 02:41:26 +01:00
Pavol Rusnak
8d551e0a69 fix whitespace 2010-02-28 02:30:13 +01:00
Klaas Freitag
22b684fa38 Merge branch 'master' of git@gitorious.org:opensuse/osc 2010-02-27 20:15:15 +01:00
Klaas Freitag
43d8fd0dbd fixed links to documentation in the wiki in osc help 2010-02-27 20:14:25 +01:00
Pavol Rusnak
90c4358da2 treat pylint warnings 2010-02-27 20:11:15 +01:00
Marcus Huewe
c6b74d6425 - added --exclude-target-project <prj> option to "osc rq list"
- reworked get_request_list()
2010-02-25 22:56:21 +01:00
Marcus Huewe
19d4d696ae - don't exit if the user made an invalid choice 2010-02-25 14:32:24 +01:00
Marcus Huewe
12d8824e93 Merge branch 'master' of git://gitorious.org/opensuse/osc 2010-02-25 14:13:23 +01:00
Marcus Huewe
74c73ee8a2 - keyring fix 2010-02-25 14:13:02 +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
Ludwig Nussel
32e99306b4 add vim mode lines to avoid evil tab characters :-) 2010-02-25 09:53:45 +01:00
Marcus Huewe
663ae2df1e - checkout files with mode 0644 2010-02-25 00:06:24 +01:00
Marcus Huewe
f16cc7e667 - convert tabs to spaces... 2010-02-24 20:02:52 +01:00
Ludwig Nussel
fd3977dc59 make osc built in text meter display progress immediately 2010-02-24 14:09:49 +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