Bug 1075517 - [PATCH] add missing import
Summary: [PATCH] add missing import
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mock
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-12 10:21 UTC by Miroslav Suchý
Modified: 2014-04-02 11:29 UTC (History)
2 users (show)

Fixed In Version: mock-1.1.38
Clone Of:
Environment:
Last Closed: 2014-04-02 11:29:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
add missing import (536 bytes, patch)
2014-03-12 10:21 UTC, Miroslav Suchý
no flags Details | Diff

Description Miroslav Suchý 2014-03-12 10:21:55 UTC
Created attachment 873424 [details]
add missing import

Description of problem:
mockchain is missing import re


Steps to Reproduce:
1. run mockchain with -a option

Actual results:
Traceback (most recent call last):
  File "/usr/bin/mockchain", line 352, in <module>
    main(sys.argv)
  File "/usr/bin/mockchain", line 251, in main
    res, msg =  add_local_repo(my_mock_config, my_mock_config, baseurl)
  File "/usr/bin/mockchain", line 105, in add_local_repo
    repoid = re.sub(r'[^a-zA-Z0-9_]', '', repoid)
NameError: global name 're' is not defined

Expected results:
no TB

Comment 1 Miroslav Suchý 2014-04-02 11:29:26 UTC
Fixed in commit 635aba9ef2740babc70b72875043522a9ab988ed


Note You need to log in before you can comment on or make changes to this bug.