1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-07 09:30:05 +02:00
Commit Graph

1437 Commits

Author SHA1 Message Date
1be86884de add support for approved requests (requires OBS 2.10) 2018-10-18 15:27:54 +02:00
lethliel
2d1295ba1b fixes 413 checkout deleted package
* altered command do_checkout
  new option -D | --deleted. Can only be used with PACKAGE and needs
  -o to work

* what happens:
  core function checkout_deleted_package fetches the file list of the deleted
  package and saves it to given destdir. If destdir is not existent it
  creates the destination directory. Otherwise the files will be written
  in the existing directory.
2018-10-18 15:24:05 +02:00
65ca4b1054 support checkconstraints command without local checkout 2018-10-17 10:16:42 +02:00
Johannes Kastl
e5e9860b7b change keep-link description to make it easier to understand 2018-10-17 10:15:54 +02:00
Marcus Huewe
27dbe35503 Refactor the do_vc code a bit
No functional changes.
2018-10-17 10:14:18 +02:00
d0a6842664 Clarify use of osc token
Clarify the fact that the parameters of osc token -t and osc token -d are
of different types.
2018-10-17 10:12:33 +02:00
2a9ce7d504 Export a real name for vc to consume 2018-10-17 10:11:16 +02:00
1af3467917 fix DISTURL checkout for package containers using a multibuild flavor 2018-10-17 10:09:32 +02:00
jonsger
d952b8965e Fix typo in "osc revert" help 2018-10-17 10:06:51 +02:00
e0589e83a3 fix some commands when used with / syntax between arguments 2018-10-17 10:05:39 +02:00
a64c188e16 - support "addcontainers" command 2018-10-17 10:05:09 +02:00
lethliel
11e51b417d fix order of options valdiation. Now -P and -p is
honored if given by user.
2018-10-17 09:55:54 +02:00
deac6b00f7 add new options to diff command:
--unexpand for local diffs only (bsc#1089025)
--meta for diffing meta files
2018-10-17 09:55:39 +02:00
lethliel
2b778f555d fix getbinaries with DOD binaries
getbinaries of dod binaries do not have a size or mtime.
This will break. So just set to None and print unkown instead.
2018-10-16 20:54:53 +02:00
lethliel
e7f979d4ea change output when creating binaries directory
was:
Creating binaries

is now:
Creating directory "binaries"
2018-10-16 20:53:41 +02:00
lethliel
d8751be732 decode diff in osc rq show -d before printing it 2018-06-05 14:48:41 +02:00
lethliel
a6627de8d3 fixed osc less <path> 2018-04-26 15:49:09 +02:00
lethliel
89a181264c fixed osc branch with different srcprj or srcpkg 2018-04-23 12:40:57 +02:00
lethliel
3760a07b50 fixed osc ls with _link file 2018-03-26 15:06:02 +02:00
lethliel
d438091ea2 fix osc diff -r1:2. Decode diff on output
remove debug print statement
2018-03-22 12:48:10 +01:00
lethliel
d07d6b9b22 fix osc sr using message from changes file 2018-03-13 15:42:00 +01:00
lethliel
3da603bf49 fix request-uri-too-long error on large updates
fix osc pull
fix osc ci with orgproj
2018-03-09 11:52:56 +01:00
lethliel
d846a6cf1f support python 2.6 2018-03-08 15:19:11 +01:00
lethliel
863cf0e62b fixed osc vc if no changes file is present 2018-03-08 12:02:20 +01:00
lethliel
17afaa9f85 fix osc api, osc build with local packaes,
fix try parent object in fetch.py
2018-03-07 13:28:04 +01:00
lethliel
c174da4174 fix commands: search, signkey, token, vc,
workerinfo
2018-03-05 15:15:51 +01:00
lethliel
fb784d315c fix commands: request, rpmlintlog 2018-03-05 14:47:03 +01:00
lethliel
453c3324cb fix commands: jobhistory, lock, maintainer, meta
prjresults, repourls
2018-03-05 14:07:26 +01:00
lethliel
1f4eab933c fixed commands
checkconstrains, copypac, distributions
2018-03-05 10:35:38 +01:00
lethliel
3cfb9d8a78 fix commands: buildinfo, buildlog 2018-03-02 13:25:19 +01:00
lethliel
3203e89d87 fix commands: buildconfig, buildhistory 2018-03-02 11:41:51 +01:00
lethliel
e1c42f1317 fix commands: cat, diff, ci, status 2018-03-02 11:33:20 +01:00
lethliel
a0cf567b0f more ''.join(m) fixes
fix prdiff_output
2018-02-28 09:36:40 +01:00
Marco Strigl
21af7828df Merge pull request #387 from lethliel/replace_urlgrabber
[python3] replace urlgrabber
2018-02-27 15:09:56 +01:00
lethliel
40ce84067e revised modules:
- simplified TextMeter/pb usage
- fixed header in meter.py
- delted unused vars in function calls
- get rid of most MGErrors
- do not check for file:// in grabber.py
2018-02-27 10:37:16 +01:00
lethliel
c629b9978a reworked based on talk with Marcus:
* renamed mirror.py to grabber.py
* moved OscFileGraber Class to grabber.py
* in OscMirrorGroup we now use a OscFileGrabber class
* moved progressbar handling in own module (meter.py)
* simplified MGError
2018-02-21 17:04:59 +01:00
Björn Geuken
030c2a41f8 Fix typo in example for osc search 2018-02-18 21:27:22 +01:00
lethliel
4fd7c5b55c reworked urlgrabber replacement.
* removed meter.py (not needed anymore. We now use
  progressbar2
* removed last urlgrabber fragments
* use progressbar2 as a replacement for UrlGrabber.ProgressBar
* use streamfile in combination with progressbar to download files
2018-02-14 15:17:21 +01:00
Marcus Huewe
8948a26ae4 Fix --multibuild-package option handling in do_sendsysrq
Concatenating a str and a list does not work.
2018-02-09 15:35:52 +01:00
7fc251d81e fix sendsysrq command description 2018-02-09 10:08:13 +01:00
80352cbfc7 add sendsysrq command 2018-02-09 08:50:21 +01:00
Marcus Huewe
9c4f0d5d30 Ignore "--alternative-project <prj>" if it is equal to the wc's project
Without this change, using "--alternative-project <prj>" in combination
with "--multibuild-package <flavor>" yields to unexpected results (from
a user's point of view). Note that this may break existing (artificial)
workflows (e.g., using --alternative-project to ignore the package
meta's debuginfo flag), but these workflows should be rare and there
are options to achieve the same.

Fixes: #376 ("osc build -M something does not work with
--alternative-project")
2018-02-07 14:35:35 +01:00
50222810f0 osc chroot: also mount devpts
This is needed for running expect, for example.
2018-01-28 16:53:52 +01:00
Marco Strigl
2405134cbf fixes not working osc maintainer <prj>
The retrun at this point breaks the call, because in most
cases <prj> is not a binary. And the code always checks for the
binary first and then returns if no binary with the name <prj>
is found.
2018-01-11 11:57:22 +01:00
Marcus Huewe
b1d6d8347b Fix "osc buildinfo --prefer-pkgs <dir>..." (finally!)
This is a follow-up commit for commit ce9a6d0 ("Fixed
\"osc buildinfo --prefer-pkgs...\"").
2017-12-06 18:04:30 +01:00
Marcus Huewe
9116d8ff97 Support expansion/unexpansion of a link when updating to certain rev
There is no good reason why "--revision <rev>" and "--expand-link" or
"--revision <rev>" and "--unexpand-link" should be mutually exclusive
during an "osc up" of a package wc.
Introduce the new "--linkrev <rev>" option to specify a rev of the link
target that is used during link expansion.
2017-12-03 16:45:36 +01:00
Marcus Huewe
5791d1bb5c Merge branch 'mount_sysfs' of https://github.com/lethliel/osc
Mount sysfs during "osc chroot". The current implementation
of "osc chroot" is a major pain for plain "su" users, because the
root password has to be entered several times - we should fix this.

Fixes: #354 ("Mount sysfs in chroot")
2017-11-21 12:34:15 +01:00
lethliel
00b6a9fe27 in chroot also mount /sys in addition to proc 2017-11-21 10:52:40 +01:00
Marcus Huewe
0f9ab38948 Merge branch 'fix_#351' of https://github.com/lethliel/osc
Fix logic for finding disabled repos in do_repositories.

Fixes: #351 ("Not all options for osc getbinaries is listed")
2017-11-09 11:56:36 +01:00
marco
12b17cfc5d consider arch when checking the disabled repos
At the moment just repo.name is considered. So if
the repo is disabled for s390 all other repo / arch
combination are not shown in the repo list.

To be able to change this r is now a list of dicts
containing the name and arch of the disabled repo.

None for repo if a complete arch gets disabled
None for arch if a complete repo gets disabled
2017-11-08 14:02:20 +01:00