Bug 1116389

Summary: dnf copr enable - 404 for repo without builds
Product: [Fedora] Fedora Reporter: Branislav Blaškovič <bblaskov>
Component: dnf-plugins-coreAssignee: Adam Samalik <asamalik>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, msuchy, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-29 07:18:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Branislav Blaškovič 2014-07-04 12:25:27 UTC
Description of problem:
  If copr repo does not have builds - .repo file does not exists which is correctly described on web page:
    "Repository not initialized: No finished builds in blaskovic/bde."

  If you would like to enable this repo via dnf copr enable, it throws error:
    Error: [Errno 14] HTTPS Error 404 - Not Found

This could be confusing


Version-Release number of selected component (if applicable):
dnf-plugins-core-0.1.0-2.fc20.noarch
dnf-0.5.2-1.fc20.noarch

Steps to Reproduce:
1. dnf search something
    You get results, so the copr-project exists!
2. dnf enable something

Actual results:
Do you want to continue? [y/N]: y
Error: [Errno 14] HTTPS Error 404 - Not Found

Expected results:
Do you want to continue? [y/N]: y
This repository does not have builds yet so you cannot enable this repository.

Comment 1 Adam Samalik 2014-07-08 15:00:20 UTC
I just sent a patch with fix to packaging-team-maint

Comment 2 Miroslav Suchý 2014-07-14 10:53:27 UTC
Commited as dc116e4.