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
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
root
c13fd84169
parisc should always build hppa
2010-09-06 10:40:24 +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
Marcus Huewe
109e199445
- filter Cookie, Authentication and Set-Cookie headers when using "osc -H..."
...
to enable full debug use "osc --http-full-debug". The current implementation
is _really_ ugly but httplib doesn't use a logger object or such...
2010-09-01 15:38:08 +02:00
11d81fe776
initial service command for running source services remote or locally
2010-09-01 12:44:47 +02:00
Marcus Huewe
2f544dad9f
- disable sslcertck for http
2010-09-01 12:04:46 +02:00
Marcus Huewe
8bd4e4eddf
- fixed #514280 ("osc help text (0.119)")
2010-08-31 18:42:52 +02:00
Marcus Huewe
7802dfa9ad
- fixed patch header
2010-08-31 17:30:31 +02:00
Marcus Huewe
3ac330f7cd
- fixed _meta_mode + added testcase
2010-08-31 16:54:44 +02:00
Marcus Huewe
d8723ef94a
- get_source_file_diff returns a list instead of a str
2010-08-31 16:13:16 +02:00
Marcus Huewe
f5c5ee10d0
- update: take self.meta into consideration
2010-08-31 15:37:53 +02:00
Marcus Huewe
0a169fb7d7
- fix for commit a05a2a0a4f
2010-08-31 15:37:11 +02:00
Michal Vyskocil
a05a2a0a4f
read_filemeta: create the default _files if not exists
2010-08-31 14:52:46 +02:00
Michal Vyskocil
c30fc87c55
explicitly mark global variables
2010-08-31 14:43:43 +02:00
Marcus Huewe
1fb6c3c48c
- request_interactive_review: print request again (after displaying the diff)
2010-08-31 14:15:04 +02:00
Marcus Huewe
9c5c329a04
- get_diff: don't diff binary files
2010-08-31 13:30:37 +02:00
Marcus Huewe
3cf8a5bf88
- fixed commit (Package class)
...
- use "self.rev" when calling update_local_filesmeta (otherwise we might get a newer revision)
- write addlist after commit
2010-08-31 13:30:37 +02:00
Marcus Huewe
c4ceb7f700
- adjusted store_write_string calls so that the storefile ends with a newline
...
- adjusted testcase fixtures for this change
2010-08-31 13:30:37 +02:00
Marcus Huewe
c8e849b391
- fixed importsrcpkg
2010-08-31 13:30:37 +02:00
Marcus Huewe
2ffd46a9c2
- get rid of the init_package_dir mess
...
moved code into the staticmethod "init_package" of the Package class.
Cleaned up "checkout_package"
2010-08-31 13:30:37 +02:00
Marcus Huewe
9e8eeb8590
- removed old "make_diff", "comparePac" methods + old status code
2010-08-31 13:30:37 +02:00
Marcus Huewe
ca61d08bf3
- added new "get_diff" method to the Package class
...
- restructured "get_source_file_diff"
- commandline.py: adapted commands so that they use the new "get_diff" method
2010-08-31 13:30:36 +02:00
Marcus Huewe
d90228a7e3
- support a revert of a missing file which was added to the wc
2010-08-31 13:30:36 +02:00
Marcus Huewe
8050671870
- fixed logic errors
...
- fixed shutil.copyfile calls (use <filename>.copy+rename)
2010-08-31 13:30:36 +02:00
Marcus Huewe
7d8aeae6d8
- beautify
2010-08-31 13:30:36 +02:00
Marcus Huewe
9c0076d726
- added testcases for "def revert"
2010-08-31 13:30:36 +02:00
Marcus Huewe
80bf280d8b
- removed hack for #399247 - there's nothing special when expanding/unexpanding links
2010-08-31 13:30:36 +02:00
Marcus Huewe
3fefbfbc5f
- added some comments for known bugs
2010-08-31 13:30:36 +02:00
Marcus Huewe
88a961cae4
- rewrote addfile() and delete_file() methods from the Package class (for the details see below)
...
- addfile():
* contains the complete logic for adding a file (=> simplified addFiles(...))
* semantic fixes
- delete_file():
* semantic fixes
- different handling of newly added/replaced files:
* added/replaced files are tracked in the .osc/_to_be_added file
- introduced new file state 'R': 'R' == "replaced"
* usecase: osc rm <file>; osc add <file> => new state is 'R'
* conceptually 'R' is equal to 'A'
- adapted revert() to support the new state (+ some other minor fixes)
- added testcases for addfile() and delete_file()
2010-08-31 13:30:36 +02:00
Marcus Huewe
d5e4a81e8f
- addremove: don't remove storefile
2010-08-31 13:30:36 +02:00
Marcus Huewe
a17fbdcff1
- restore storefile in case it is lost (for whatever reason)
2010-08-31 13:30:35 +02:00
Marcus Huewe
7fc24f70a1
- bye bye old code
2010-08-31 13:30:35 +02:00
Marcus Huewe
bfb53cf67a
- raise an exception if a file is known by meta but no storefile exists
2010-08-31 13:30:35 +02:00
Marcus Huewe
b3d638774c
- do_revert: initial version
2010-08-31 13:30:35 +02:00
Marcus Huewe
7ca255cca0
- todo_send and todo_delete are no longer attributes (this also fixes commit ca45955ad60fc1dac9b013ba2d7cecbb9a132c6e)
2010-08-31 13:30:35 +02:00
Marcus Huewe
334fa82d39
- delete storefile if the commit was successful
2010-08-31 13:30:35 +02:00
Marcus Huewe
d8c59c8438
- update: support special handling for _service: files
2010-08-31 13:30:35 +02:00
Marcus Huewe
58ca66a417
- update: always use 'rev' query parameter when fetching files
2010-08-31 13:30:35 +02:00