diff options
| author | Michael Vogt <mvo@ubuntu.com> | 2014-11-06 22:05:59 +0100 |
|---|---|---|
| committer | Michael Vogt <mvo@ubuntu.com> | 2014-11-07 07:58:44 +0100 |
| commit | 570564c21558620f474666ab3dc18e10c0818c40 (patch) | |
| tree | d9ae507adcd2adc5a2d79c57027f993a345ac80e /apt | |
| parent | d92026e96db4a4d03cec9f135b5407804892c55f (diff) | |
| download | python-apt-570564c21558620f474666ab3dc18e10c0818c40.tar.gz | |
apt/debfile.py: use apt_pkg.open_maybe_clear_signed_file() when opening a .dsc file
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/debfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt/debfile.py b/apt/debfile.py index 1f93b7bb..20cf563c 100644 --- a/apt/debfile.py +++ b/apt/debfile.py @@ -714,7 +714,8 @@ class DscSrcPackage(DebPackage): """Open the package.""" depends_tags = ["Build-Depends", "Build-Depends-Indep"] conflicts_tags = ["Build-Conflicts", "Build-Conflicts-Indep"] - fobj = open(file) + fd = apt_pkg.open_maybe_clear_signed_file(file) + fobj = os.fdopen(fd) tagfile = apt_pkg.TagFile(fobj) try: for sec in tagfile: |
