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

fixed unit copy with mongoengine; added cli commands to copy drpm and metafile #4

Merged
merged 1 commit into from Dec 14, 2015

Conversation

mhrivnak
Copy link

No description provided.

@@ -39,6 +39,8 @@ def initialize(context):
copy_section.add_command(copy_commands.PackageEnvironmentCopyCommand(context))
copy_section.add_command(copy_commands.AllCopyCommand(context))
copy_section.add_command(copy_commands.SrpmCopyCommand(context))
copy_section.add_command(copy_commands.YumRepoMetadataFileCommand(context))
copy_section.add_command(copy_commands.DrpmCopyCommand(context))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out this command already existed but just hadn't been added to the structure!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niiiice

@bmbouter bmbouter self-assigned this Dec 14, 2015
@@ -102,12 +104,10 @@ def get_rpms_to_copy_by_key(rpm_search_dicts, import_conduit):
# ignore checksum from updateinfo.xml
key['checksum'] = None
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about changing these to be:

del key['checksum']
del key['checksumtype']

If that change works I think it would be better.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namedtuples don't have default arguments, so you have to supply a value for every parameter. So unfortunately this wouldn't work.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then this is right!

@bmbouter bmbouter removed their assignment Dec 14, 2015
bmbouter added a commit that referenced this pull request Dec 14, 2015
fixed unit copy with mongoengine; added cli commands to copy drpm and metafile
@bmbouter bmbouter merged commit 0722278 into bmbouter:874-barleywine Dec 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants