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

717 Commits

Author SHA1 Message Date
d3188831b9 validate received file length based on given Content-Length. for Bug #656281 2010-11-30 16:39:14 +01:00
Marcus Huewe
044ffdd62e - minor cosmetic change for the last commit 2010-11-25 22:45:51 +01:00
Dirk Müller
596570cebb optimize _link files
On Thursday 04 November 2010, Sascha Peilicke wrote:

> Could you please send a patch file?

attached.

Greetings,
Dirk

From ac737b9ff8205fe3c320ee0b41b093c7ad92c348 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dmueller@suse.de>
Date: Thu, 4 Nov 2010 11:01:08 +0100
Subject: [PATCH] linkpac: Only include src_project if it differs

osc copypac copies _link files verbatim, so if they refer
to the same project, copying them should make them also
refer to the new project. This can be done by leaving
out the project part if it is the same like the destination
project
2010-11-25 22:43:42 +01:00
Marcus Huewe
ca794fe87f - added template support for a submitrequest accept/decline message 2010-11-14 18:32:02 +01:00
Sascha Peilicke
dc49a7ebb2 fix for bnc #432995 2010-11-10 12:18:17 +01:00
8321e41096 fix review state change for review by_group 2010-11-09 17:19:56 +01:00
90325e90f4 fix URL syntax when requesting request list via reviewers 2010-11-09 16:08:26 +01:00
Michael Schroeder
6b618b29be - do not crash if there is no diff 2010-10-29 17:30:56 +02:00
Marcus Huewe
65e5af303a - request_interactive_review: support "c(l)one" 2010-10-26 15:47:07 +02:00
Marcus Huewe
785e4dcb1f - added new "clone_request" method 2010-10-26 15:34:32 +02:00
Juergen Weigert
7862ce74de redundant 'state is' removed from messages. 2010-10-23 14:49:28 +02:00
Ludwig Nussel
5cdc422774 update review/request docu and fix some status code parsing 2010-10-12 11:31:03 +02:00
Marcus Huewe
4229eb6197 - repairwc: repair a project wc (only missing '_apiurl' file so far) 2010-10-10 21:40:31 +02:00
Marcus Huewe
cc29db4551 - get rid of osc.core.init_project_dir
- moved cleaned up code to the Project class' "init_project" static method
2010-10-09 16:26:55 +02:00
Marcus Huewe
1b9825b8d8 - '_frozen' is no special storefile 2010-10-09 14:31:58 +02:00
Marcus Huewe
b08802e9fe - fixed do_my (was broken by commit 54513a23de but nobody noticed it so far) 2010-09-29 19:57:00 +02:00
Marcus Huewe
64ac6aeb4f - do_repairwc/wc_repair: repair missing "_apiurl" file
- store_read_apiurl: raise WorkingCopyInconsistent if dir is a wc, defaulturl is False
  and ".osc/_apiurl" doesn't exist (otherwise NoWorkingCopy is raised)
- WorkingCopyInconsistent: add new attribute which contains the dirty files
2010-09-28 23:07:33 +02:00
brook hong
02980dfdb0 git_pull service osc support 2010-09-20 17:09:43 +08:00
Marcus Huewe
530d67102f - package/project wc's require the "_apiurl" storefile
- store_read_apiurl: added "defaulturl=True" parameter to return the
  default apiurl if no '_apiurl' file exists (or if an exception is
  raised while trying to read the '_apiurl' file)
2010-09-19 23:00:19 +02:00
Marcus Huewe
af7ff0f2ad - request_interactive_review: added "(s)kip" option to skip the current request 2010-09-17 23:03:29 +02:00
Marcus Huewe
cb7620fc54 - add '_frozenlink' to OPT_STOREFILES 2010-09-16 15:43:17 +02:00
Marcus Huewe
6d9c5cf228 - "osc request show <id>": added --source-buildstatus option to print the buildstatus of the src package
- "osc request show <id> --interactive": added shortcut "b" to print the buildstatus of the src package
2010-09-14 16:02:21 +02:00
Marcus Huewe
69c3161e93 - do_repairwc: print more details how to fix a broken wc 2010-09-14 14:48:10 +02:00
Marcus Huewe
f9f785ccd8 - add path to the broken wc to the error message 2010-09-14 13:12:32 +02:00
Vincent Untz
e78e4f3151 make "osc rdiff" run with a pager
We also do this for "osc request show -d" and similar friends.

Also, make run_pager() handle the case where the string is empty,
instead of having to make the caller handle it.
2010-09-12 23:22:18 +02:00
Marcus Huewe
7b5471e737 - fixed #634042 ("osc shows negative percentages of RPM installation completion") 2010-09-09 15:04:00 +02:00
Marcus Huewe
fdc43cd9a2 - added validator params to "commitExtPackage"
- use True/False instead of 1/None for the "verbose_validation" parameter
2010-09-09 12:49:53 +02:00
Marcus Huewe
4a19faadf3 - Package class: moved validation code into a new method "validate"
- do_commit: call validate before asking the user for a commit msg
- Project class: added new validate_pacs method
- minor fixes here and there
2010-09-09 12:30:49 +02:00
Marcus Huewe
5cd8769f5a - added '_commit_msg' to OPT_STOREFILES tuple 2010-09-09 09:52:59 +02:00
Marcus Huewe
9ad14a1d9c - added new "repairwc" command which tries to repair an inconsistent working copy 2010-09-08 18:56:15 +02:00
Marcus Huewe
565ca7890d - make download() less error prone 2010-09-08 17:41:14 +02:00
Marcus Huewe
7fb1d22593 - adapt old difflib format to python2.7's format 2010-09-08 12:10:09 +02:00
36c0245e80 fix usage of linkrev in show_xsrcmd5 function.
make usage of linkrev=base options in setlinkrev.
2010-09-07 15:03:01 +02:00
492edaa794 Go one step further with setlinkrev, use always xsrcmd5, even when given a normal revsion, except "-R" option is used. 2010-09-07 12:14:13 +02:00
10d999c479 setlinkrev is setting now the revision to xsrcmd5 by default to avoid later breakage on indirect links 2010-09-07 11:58:18 +02:00
Marcus Huewe
c85ee2c0cb - removed "old" hack 2010-09-07 10:54:42 +02:00
Marcus Huewe
1043bc8145 - hrm newly created packages have no revision... 2010-09-06 17:57:30 +02:00
Marcus Huewe
eb17e3ffe1 - fixed "osc add /path/to/prj/pkg" 2010-09-06 17:50:56 +02:00
Marcus Huewe
5e72fa1284 - fixed "osc addremove": use delete_file(), initialize pac.todo correctly
- added new testcase
2010-09-06 15:28:23 +02:00
Marcus Huewe
31f14c7abe - print more information if a PackageInternalError exception is caught 2010-09-03 19:59:14 +02:00
Marcus Huewe
57a3832a8e - rewrote "def commit"
- the upload revision isn't used anymore instead we commit via
  cmd=commitfilelist
- extended and adjusted testcases
2010-09-03 17:46:01 +02:00
Marcus Huewe
5c8b258a6b - fixed read_sizelimit: added missing strip
- fix for commit 89c9cb67f4: self.size_limit should be an int
- added testcase for local _size_limit constraint
2010-09-03 16:09:56 +02:00
Marcus Huewe
89c9cb67f4 - renamed limit_size to size_limit (only internal variable changes)
- added new method "get_files_meta" to the Package class (which handles
  the the "skip file and service stuff")
2010-09-03 14:51:20 +02:00
Marcus Huewe
7dc2356c0e - status: fixed state
if a file with state 'R' is removed from the wc its new state is '!'
2010-09-02 18:42:31 +02:00
feab43ed2f hide depricated "expansion error" in legend 2010-09-02 16:44:02 +02:00
Marcus Huewe
94eb143d8c - small fixes for do_status and get_diff
- get_diff:
  * more helpful error message if a file was added and the local
    file was removed again
  * unify self.filenamelist and self.to_be_added if self.todo is empty
  * extended testcases
- do_status: be able to run "osc st <nonexistentfile>"
2010-09-02 13:47:42 +02:00
e5016d0f64 support OBS 2.1 request diff 2010-09-02 10:30:13 +02:00
Marcus Huewe
b718669685 - raise OscIOError instead of IOError (adjusted testcases) 2010-09-02 10:23:37 +02:00
Marcus Huewe
7145ecf0c9 - added is_known_apiurl method to check if a given url is a known apiurl 2010-09-01 15:53:37 +02:00
11d81fe776 initial service command for running source services remote or locally 2010-09-01 12:44:47 +02:00