Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

considering breaking out select --add as separate command #754

Closed
jberry-suse opened this issue Mar 15, 2017 · 5 comments · Fixed by #2102
Closed

considering breaking out select --add as separate command #754

jberry-suse opened this issue Mar 15, 2017 · 5 comments · Fixed by #2102
Assignees

Comments

@jberry-suse
Copy link
Contributor

The select logic seems a bit odd since it basically has the --add option which does not perform a select, but instead adds packages to a project's pseudometa.

if opts.add:
    api.mark_additional_packages(target_project, [opts.add])
else:
    SelectCommand(api, target_project) \
        .perform(requests, opts.move, opts.from_, opts.no_freeze)
meta['add_to_repo'] = sorted(additionals)
self.set_prj_pseudometa(project, meta)

I am not familiar with what add_to_repo is achomplishing as it is not referenced anywhere else in the codebase. Is this still utilized and if so should it be moved out of select in a similar fashion to moving list --supersede into a separate command in #738.

@DimStar77
Copy link
Contributor

@coolo
Do you have strong feelings for select --add and a usecase for it? Otherwise I'd actually propose to remove this code completely

@coolo
Copy link
Member

coolo commented Jun 3, 2019

https://progress.opensuse.org/issues/2892 never worked out - but we didn't remove the code.

@coolo coolo self-assigned this Jun 3, 2019
@DimStar77
Copy link
Contributor

I think the use case documented in the progress issue is mainly obsolete by the fact of us having a 'more complete ring' - which is self contained up to the install level for repo-checker (without layering)

@coolo
Copy link
Member

coolo commented Jun 3, 2019

this issue (and the code) predates staging projects even

@coolo
Copy link
Member

coolo commented Jun 3, 2019

(repo checker using staging projects I mean)

coolo added a commit to coolo/osc-plugin-factory that referenced this issue Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants