Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-40914

reposync --metadata-path doesn't respect --norepopath

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-9.6
    • rhel-8.10, rhel-9.4
    • dnf-plugins-core
    • dnf-plugins-core-4.3.0-17.el9
    • None
    • Low
    • rhel-sst-cs-software-management
    • ssg_core_services
    • 9
    • 12
    • None
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Hide

      When running `dnf reposync -download-metadata  -norepopath --metadata-path <directory>`, the downloaded metadata are stored directly in the provided directory and no additional directory representing the repository is created. The only added directory is "repodata" that contains the repository metadata.

      Show
      When running `dnf reposync - download-metadata   -norepopath --metadata-path <directory>`, the downloaded metadata are stored directly in the provided directory and no additional directory representing the repository is created. The only added directory is "repodata" that contains the repository metadata.
    • Pass
    • Enabled
    • Automated
    • Bug Fix
    • Hide
      Cause: The `dnf reposync` command does not respect the `--norepopath` option for downloading repository metadata.
      Consequence: The repository metadata are stored in a subdirectory named after the repository.
      Fix: The `dnf reposync` command now respects the `--norepopath` option for downloading repository metadata.
      Result: The repository metadata are stored directly in the requested directory without creating a subdirectory.
      Show
      Cause: The `dnf reposync` command does not respect the `--norepopath` option for downloading repository metadata. Consequence: The repository metadata are stored in a subdirectory named after the repository. Fix: The `dnf reposync` command now respects the `--norepopath` option for downloading repository metadata. Result: The repository metadata are stored directly in the requested directory without creating a subdirectory.
    • Proposed
    • None

      What were you trying to do that didn't work?

      reposync --repo rhel-8-for-x86_64-appstream-rpms -n --download-metadata --norepopath --metadata-path ./test

      Steps to reproduce

      1. mkdir test
      2. reposync --repo rhel-8-for-x86_64-appstream-rpms -n --download-metadata --norepopath --metadata-path ./test
      3.  
      4.  

      Expected results

      repodata should be directly under the `--metadata-path ./test` directory. No subdirectory of <repo-id> should be created

      Actual results

      under test another `rhel-8-for-x86_64-appstream-rpms` is created even though --norepopath was used.

      ├── test
      │   └── rhel-8-for-x86_64-appstream-rpms
      │       └── repodata
      │           ├── 03c475ce3c40338cdfead0575f1e0c11218aa0ac6f193ecee14f39ac7359fd08-updateinfo.xml.gz
      │           ├── 0b5bd10ab6d357859feb1e631fbc759316261238df1211e86c2f4bcd571ce3cf-primary.sqlite.bz2
      │           ├── 1475556c-4acd-497e-8350-b6bb54050906
      │           ├── 1d79326dae8b7e5f83125023f0ed7cacf09bf7fa58776ea080723aa76f1548df-comps.xml
      │           ├── 32f17053c9cfc39e79ca0de6365d3486c9fd14754b0568f63a48dfa593f9497e-modules.yaml.gz
      │           ├── 3c94b579cfeaeaac53f1da8b36c3ce4dbabe3c6fcdb5c06a39185af02e4b568d-other.xml.gz
      │           ├── 3eab477d9d85772ff4c6ea7d5faf5574ac1f3138fa01665c0d1f208c7767c0ca-filelists.sqlite.bz2
      │           ├── 442386e56780b766fd8795f8633ffbf33266c61e6ddb1a6c1c7bdb20d561a57e-other.sqlite.bz2
      │           ├── 6bd20daa88f4b53e17af3b66a3b103e7f0165b6bf02240e742bbadb6cedfc1df-primary.xml.gz
      │           ├── 8d8afa649fc0fa3a0fab48bcc601f8f7edf8f4a18b46dfba21764ea90fd03b0f-filelists.xml.gz
      │           └── repomd.xml 

              pkratoch@redhat.com Pavla Kratochvilova
              rhn-support-jcastran John Castranio
              packaging-team-maint packaging-team-maint
              Martin Banas Martin Banas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: