Commit graph

88 commits

Author SHA1 Message Date
Tomas Kopecek
98b83eff69 fix downloads w/o content-length
Fixes: https://pagure.io/koji/issue/982
2019-11-25 14:51:08 +01:00
Mike McLean
d53fefa640 Split out inheritance flags formatting 2019-10-15 08:50:16 +02:00
Tomas Kopecek
9491c078bb remove deprecated koji_cli.lib_unique_path
Fixes: https://pagure.io/koji/issue/1459
2019-08-12 17:57:49 -04:00
Tomas Kopecek
558e129c6b use same arch parsing for cli and hub
Related: https://pagure.io/koji/issue/1237
2019-05-21 18:39:52 -04:00
Tomas Kopecek
70968aba33 Remove python2.4 OptionParse fix
Fixes: https://pagure.io/koji/issue/1341
2019-03-20 16:09:44 -04:00
Mike McLean
a55ea5c2d6 drop unused write_to_stdout function
this was added after 1.16 and no longer used, so no point in keeping it
2019-03-04 09:57:15 -05:00
Mike McLean
b4b6e2e6cc simpler function for dumping bytes to stdout 2019-03-04 09:57:15 -05:00
Tomas Kopecek
a4d41bd078 wrapper function for writing to stdout 2019-02-19 17:29:25 -05:00
Ken Dreyer
9fe61b561f cli: document parse_arches method parameters
Document the parameters for the parse_arches method.
2018-11-29 08:22:13 -07:00
Mike McLean
65a3dc0953 move inner function out of except clause 2018-11-28 15:25:57 -05:00
Yuming Zhu
9a0d735d40 move quiet option into ki_handler 2018-11-28 15:25:57 -05:00
Yuming Zhu
30ed89e485 cli: add a param in watch_tasks to override KeyboardInterrupt output 2018-11-28 15:25:57 -05:00
Chenxiong Qi
5a3246f22a Ignore non-existing option when activate a session
For kerberos auth, if not login with a keytab and principal, those two
options may not be present in the incoming options.

Similarly, debug is also an optional option that could not exist.

Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2018-10-21 15:54:05 -04:00
Tomas Kopecek
c64f3389c7 fix utf-8 output in CLI
Fixes: https://pagure.io/koji/issue/1010
2018-08-16 09:17:11 -04:00
Tomas Kopecek
913efc47d1 Raise error for non-200 codes in download_file
Fixes: https://pagure.io/koji/issue/1020
2018-08-08 11:20:33 -04:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Yuming Zhu
1c76cd0c0f cli: rename _unique_path to unique_path, and deprecate the old one 2018-06-28 12:39:12 -04:00
Mike McLean
6b09de74d3 make default user value consistent 2018-02-19 17:10:34 -05:00
Tomas Kopecek
a954bfb84b Fix values for non-existent options 2018-02-19 17:10:34 -05:00
Mike McLean
f81c369724 avoid reporting incorrect info in is_success() 2017-11-22 00:24:24 -05:00
Yuming Zhu
73ebc0c98f cli: make return code of watch_task to always ignore sub-task failure
fixes: #696
2017-11-22 00:24:24 -05:00
Tomas Kopecek
bf0552e6de use contextlib wrapper for older python-requests 2017-10-16 10:03:42 -04:00
Tomas Kopecek
7e2cb6b156 replace pycurl with requests
Related: https://pagure.io/koji/issue/600
2017-10-16 10:03:42 -04:00
Tomas Kopecek
77339cc7a1 unit test 2017-10-11 01:05:41 -04:00
Tomas Kopecek
c7fbf4ec81 move _list_task to client lib 2017-10-11 01:05:41 -04:00
Tomas Kopecek
db37cec5ae watch-logs --mine --follow
Related: https://pagure.io/koji/issue/621
2017-10-11 01:05:41 -04:00
Mike McLean
3233dc760f don't assume runas option in activate_session 2017-09-14 22:59:11 -04:00
Tomas Kopecek
bc43f8bdfc modify activate_session to be easily used without CLI
Related: https://pagure.io/koji/issue/436
2017-09-14 18:18:35 -04:00
Yuming Zhu
ba087236dd cli: using PROGRESSFUNCTION before libcurl 7.32.0 in download_file 2017-08-08 12:26:22 -04:00
Yuming Zhu
5df1e3e6e6 cli: do not print extra blank line when noprogress passed 2017-08-08 12:26:22 -04:00
Yuming Zhu
2d7ceb2992 cli: add c.close() in download_file and move inner function outside 2017-08-08 12:26:22 -04:00
Yuming Zhu
1e77866b35 cli: change download-task to regular curl download
also make 301/302 redirect acceptable by download-build & download-task
2017-08-08 12:26:22 -04:00
Ville Skyttä
10bc242c32 Spelling fixes 2017-07-30 12:49:19 +03:00
Mike McLean
94f116e898 watch-logs: fix py3 encoding issues 2017-06-16 10:16:07 +02:00
Tomas Kopecek
03ec96803a Fix blank lines (pep8)
split_cli.py caused some missing or additional empty lines. Fixed
according to pep8.
2017-06-13 15:44:38 +02:00
Tomas Kopecek
c15c553048 fix entry path 2017-06-13 11:42:04 +02:00
Tomas Kopecek
37bcef025c cleanup after automatic split 2017-06-13 11:42:04 +02:00
Tomas Kopecek
81b2b36d07 apply split 2017-06-13 11:20:38 +02:00