606 Commits

Author SHA1 Message Date
9862e7d1ee AcceptCommand: Fix regex to replace devel prj for linked packages 2016-06-15 13:04:08 +02:00
Ludwig Nussel
7a19cf19fb Merge pull request #526 from lnussel/master
Handle separate lookup file in :NonFree
2016-06-14 14:29:31 +02:00
Ludwig Nussel
b505e7e7d8 Create empty dict even for projects without packages
cross OBS instance search doesn't seem to work so get_devel_project would
crash

closes #529
2016-06-14 14:05:17 +02:00
8c649111d9 Supeseding the request only when it was an reasonable type
Supeseding in stagin tool mainly works for submit/delete type request,
ie. supesede each other. The rest of type should not the case here.
2016-06-13 17:30:08 +08:00
335089ac61 Displays as Ring0 package if the subpackage was linked to Ring1
If the package was linked to Ring1 from Ring1, staging list command
should display it as Ring0 package ie. it's only be able to puts in
ring0 staging project. This is work out
https://progress.opensuse.org/issues/8266
2016-06-13 16:54:01 +08:00
Ludwig Nussel
bddcc12c8d Fix accept logic to actually work 2016-06-09 13:15:01 +02:00
Ludwig Nussel
4c43fe5c87 Group staging list by devel project 2016-06-07 15:12:02 +02:00
Ludwig Nussel
f2db5cdb5e Use implicit whitespace split 2016-06-07 15:12:02 +02:00
Ludwig Nussel
8857e79813 Print warning when staging with build disabled 2016-06-07 15:11:26 +02:00
Ludwig Nussel
919009aaf3 Print linkpac -f if link exists 2016-06-07 15:11:26 +02:00
Ludwig Nussel
7970a01c28 Don't die on packages that don't exist in Factory 2016-06-07 15:11:26 +02:00
Ludwig Nussel
fac9d408bb Change meaning of --force for accept
Just ignore if totest doesn't exist. Instead make --force accept a
staging despite failures.
2016-06-07 15:11:26 +02:00
Ludwig Nussel
a71a2ee9b4 Add --no-bootstrap to freeze command
Sometimes it's desirable to re-freeze a staging project without touching
the bootstrap copy again.
2016-06-07 14:44:42 +02:00
Ludwig Nussel
27fb22b504 Print out something when trying to select a dupliate request 2016-06-07 14:44:42 +02:00
Ludwig Nussel
605a0cd0fa Catch sub packages changed to standalone
Instead of just dying raise a meaningful exception if a package is a
subpackage in a ring but standalone in the main project.
2016-06-07 14:44:42 +02:00
Ludwig Nussel
438e333eff Also fix multi spec file links 2016-06-07 14:44:42 +02:00
Ludwig Nussel
082f3a9a52 Fixup cleanup_rings a bit 2016-06-07 14:44:42 +02:00
Ludwig Nussel
dcb53ead4e Fix openSUSE staging defaults 2016-06-07 14:42:57 +02:00
d70f80cbd2 Autocleanup: Make list of packages to retain configurable 2016-06-02 16:37:32 +02:00
Ludwig Nussel
5812e0fe47 Merge pull request #519 from DimStar77/accept-cleanup
Accept cleanup
2016-06-02 13:09:42 +02:00
482c1f0490 AcceptCommand: Cleanup packages that were manually linked to projects 2016-06-02 12:40:48 +02:00
5c8aa3944f stagingapi: Add list_packages method
* Lists all the packages in a project

and use the new API call in check_pkgs
2016-05-31 15:05:36 +02:00
bd06bb33f7 Fix for id->number change in check_command 2016-05-31 20:11:36 +08:00
340aa5323c Small fixes 2016-05-31 14:25:51 +08:00
e8c55026ed Add --split argument to adi command
With --split argument, staging adi command can splits each package to
different adi staging project, the argument can work by 'osc staging adi
--split' or 'osc staging adi --move --split'. Note that, it will be
ignore --by-develproject argument too.
2016-05-31 14:25:51 +08:00
232673bd1f Also update product version in Staging1 TestDVD 2016-05-24 14:43:48 +08:00
Ludwig Nussel
84ba41de31 Merge pull request #499 from nilxam/adi_by_dp_leap
Update by_dp function in adi command
2016-05-12 11:25:15 +02:00
Ludwig Nussel
28831300fc Defer initialization of ring packages
some users of the staging api don't need to access rings, so defer
initialization to first use.
2016-05-09 17:32:40 +02:00
85cafb7316 Update by_dp function in adi command
Update by_dp function in adi command, the old way is incompatible to
newer Leap development model, now we should try to check target package
in Factory as well, otherwise the submission from any other place than
Factory did not have 'devel' entry in _meta.
2016-05-09 15:02:10 +08:00
Alberto Planas
5732cd993a conf: allows subprojects in the regex. 2016-05-04 14:39:42 +02:00
73da5dd402 Use number instead of id for id->number switch issue 2016-05-03 21:29:32 +08:00
dfb4f959fa Ugly workaround for glibc.i686 package config
Workaround glibc.i686 package config, it had a topadd block in _link,
and looks like it causes the disturl won't consistently with glibc even
with the same srcmd5. And the lastsuccess state will be outdated if the
revision is used the same srcmd5.

Note: the proper workaround, to instead of
5daf2bb6509abaf966268c9d6b13aa4e330a8af3
2016-04-21 20:12:10 +08:00
87d4fa5f09 Revert "Ugly workaround for glibc.i686 package config"
This reverts commit 5daf2bb6509abaf966268c9d6b13aa4e330a8af3.
2016-04-21 20:09:25 +08:00
5daf2bb650 Ugly workaround for glibc.i686 package config
Workaround glibc.i686 package config, it had a topadd block in _link,
and looks like it causes the disturl won't consistently with glibc even
with the same srcmd5. And the lastsuccess state will be outdated if the
revision is used the same srcmd5.
2016-04-21 18:30:56 +08:00
fb7f304edd Add glibc.i686 to specs if its glibc request
Add glibc.i686 to specs if its glibc request, therefore, repochecker
will not ignore glibc.i686 binaries in case some binaries need them.
Also ignore build_excluded if it's i686 only package, and downloading
it's i586 packages.
2016-04-21 18:30:56 +08:00
b9c98afa34 More sensible output in check_disturl()
More sensible output in check_disturl(). And changed the output flag to
WARNING than DECLINED as it did not really decline the request.
2016-04-20 17:32:26 +08:00
518586506d Output the additional message if the request is outdated in the devel project
The additional message will look more clear than telling it's bad
disturl and no matching downloads available. Note that, before executing
in check_disturl(), there is another place to check the revision which
was in check_specs(), but it was mainly for 2nd spec.

And makes DECLINED message consistently.
2016-04-19 21:52:31 +08:00
374d472ecb New staging repair command
Mainly fix the request review if the request got reopened.
2016-04-18 21:55:51 +08:00
8c6ef7ff80 repochecker: Adjust the decline message for missing binaries
Some users are confused as the old message "package never built" does
not have to be true in many cases, especially on longer-lasting
stagings. In this case, the binaries might have been built but have
since been replaced by newer ones - the effect is the same: repo-checker
can't receive them in order to perform the full checks.
2016-04-12 11:15:39 +02:00
85674b31c5 Show package also in adi command 2016-04-11 13:53:23 +08:00
8fa6783c3f Do not check totest on SLE
If release-notes-sles is existed then it is not openSUSE Factory but
SLE, hence do not check totest and openSUSE-release.rpm on it.

And add try/except protection in get_binary_version otherwise it will
crashes in case the package is not existed.
2016-03-25 18:55:36 +08:00
2c5e84b2b3 Fixes previous commit 2016-03-23 18:11:48 +08:00
128d97ba5f Add the possible repo candidates
Add the possible repo candidates to repos_to_check, those candidates
need to have binaries for check.
2016-03-23 17:44:20 +08:00
806fb3e158 Check the common Factory build repository only
Adding the common Factory build repository to the candidate repos only,
adn re-introduced build_excluded attribute. If it haven't good repo ie.
builds against ARM, PPC, images, i586 only or whatever, leave them there
for human to check.

Verified with SR#359327, SR#360767, SR#361364 and SR#361243.
2016-02-25 22:58:13 +08:00
e8fac472da Need to care about unknown status 2016-02-25 02:59:11 +08:00
3fb42d1385 Do not count excluded repository as good repo
Fix https://progress.opensuse.org/issues/10888
2016-02-24 19:56:31 +08:00
9a03a60f62 Fix PUT data never send 2016-02-18 18:25:51 +08:00
Ludwig Nussel
34b6e1da89 Merge pull request #460 from DimStar77/unselect-better-msg
unselect: Do not state we accepted the request, but give a better mes…
2016-02-16 15:43:53 +01:00
73c0050fbd unselect: Do not state we accepted the request, but give a better message 2016-02-10 11:04:39 +01:00
Ludwig Nussel
8c53f9f8f0 don't use recursive retry
don't use recursion and don't hammer server
2016-02-05 16:26:16 +01:00