mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 23:51:08 +00:00
suspicious-source: Show error message instead of having the import error
for recommended packages (Closes: #613101, LP: #693813).
This commit is contained in:
parent
13fbbcb4f3
commit
02c7c47ece
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
||||
ubuntu-dev-tools (0.117) UNRELEASED; urgency=low
|
||||
|
||||
* suspicious-source: Show error message instead of having the import error
|
||||
for recommended packages (Closes: #613101, LP: #693813).
|
||||
|
||||
-- Benjamin Drung <bdrung@debian.org> Sat, 12 Feb 2011 22:35:07 +0100
|
||||
|
||||
ubuntu-dev-tools (0.116) unstable; urgency=low
|
||||
|
||||
[ Benjamin Drung ]
|
||||
|
@ -14,13 +14,18 @@
|
||||
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
import magic
|
||||
import optparse
|
||||
import os
|
||||
import sys
|
||||
|
||||
from ubuntutools.logger import Logger
|
||||
|
||||
try:
|
||||
import magic
|
||||
except ImportError:
|
||||
Logger.error("Please install 'python-magic' in order to use this utility.")
|
||||
sys.exit(1)
|
||||
|
||||
DEFAULT_WHITELISTED_MIMETYPES = [
|
||||
"application/vnd.font-fontforge-sfd", # font source: fontforge
|
||||
"application/x-elc",
|
||||
|
Loading…
x
Reference in New Issue
Block a user