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

Adapted package translation on the required amount of packages #39

Merged
merged 3 commits into from
May 25, 2020

Conversation

schubi2
Copy link
Member

@schubi2 schubi2 commented May 20, 2020

Problem

While creating a new image the suse/setup/desc/packages.<language>.gz files will not be updated.
This produces an error while package installation. The package will not be found on the repo.

Solution

Deleting these corrupted files. So libzypp will not take it in account anymore.

Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

Just the escaping needs to be improved...

Exec(
Builtins.sformat(
"rm %1/%2/%3/setup/descr/packages.*",
String.Quote(basedir),
Copy link
Member

Choose a reason for hiding this comment

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

This will not work when the basedir contains a space. There were quite some bug reports about this in the past, it seems users really use spaces in directory names... 😉

String.Quote is designed to be used inside single quotes, so this quoting will not work properly.

As we cannot use single quotes here I'd use Shellwords here:

basedir.shellescape,
subdir.shellescape,
datadir.shellescape

(+ add require "shellwords" ad the top).

Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

LGTM

@schubi2 schubi2 merged commit 3e8bfb4 into SLE-12-SP3 May 25, 2020
@schubi2 schubi2 deleted the SLE-12-SP3-bsc-1165247 branch May 25, 2020 12:23
@schubi2 schubi2 mentioned this pull request May 25, 2020
schubi2 added a commit that referenced this pull request May 25, 2020
…40)

* adapted package translation on the required amount of packages
schubi2 added a commit that referenced this pull request Nov 17, 2020
…42)

* adapted package translation on the required amount of packages
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 this pull request may close these issues.

2 participants