Bug 977803 - py: ctrl-c not throwing KeyboardInterrupt under specific circumstances.
Summary: py: ctrl-c not throwing KeyboardInterrupt under specific circumstances.
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: librepo
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mlcoch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 977661
TreeView+ depends on / blocked
 
Reported: 2013-06-25 11:11 UTC by Ales Kozumplik
Modified: 2014-09-30 23:41 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-17 11:49:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ales Kozumplik 2013-06-25 11:11:22 UTC
Description of problem:
Have a (large, e.g. the F19) repo synced in ./repodata.

Run the script:

#! /usr/bin/python

import librepo

MIRROR="""https://mirrors.fedoraproject.org/metalink?repo=fedora-19&arch=x86_64"""
DESTDIR="./"

if __name__ == "__main__":
    h = librepo.Handle()
    h.destdir = DESTDIR
    h.interruptible = True
    h.url = DESTDIR
    h.repotype = librepo.LR_YUMREPO
    h.mirrorlist = MIRROR
    h.yumdlist = ["primary", "filelists", "prestodelta", "group_gz"]
    h.local = True
    h.perform(librepo.Result())
    print(h.mirrors)

Press Ctrl-C during h.perform(). No KeyboardInterrupt will be raised. The last statement will print None (this verifies we pressed Ctrl+C in the right moment yet the perform() somehow didn't finish correctly).

Comment 2 Ales Kozumplik 2013-07-03 12:57:31 UTC
Tomas, what librepo version will this be included in?

Comment 3 Tomas Mlcoch 2013-07-04 10:59:43 UTC
librepo-0.0.5


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