Skip to content

Commit bad86d3

Browse files
authored
Fix python-apt installation error reporting (#60)
1 parent e1691cb commit bad86d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

colcon_bundle/installer/apt.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import os
77
import subprocess
88

9-
from apt.cache import FetchFailedException
10-
from apt.package import FetchError
119
from colcon_bundle.installer import BundleInstallerExtensionPoint
1210
from colcon_bundle.verb import logger
1311
from colcon_bundle.verb.utilities import get_ubuntu_distribution_version
@@ -134,6 +132,8 @@ def remove_from_install_list(self, name, metadata=None): # noqa: D102
134132
package.mark_delete(auto_fix=False)
135133

136134
def _fetch_packages(self): # noqa: D102
135+
from apt.cache import FetchFailedException
136+
from apt.package import FetchError
137137
packages = []
138138
source_fetch_failures = []
139139
for package in self._cache:

0 commit comments

Comments
 (0)