Remove devscripts checks (we Depend on it). Reword python-simplejson error

This commit is contained in:
Stefano Rivera 2010-12-25 18:31:00 +02:00
parent b5274624ac
commit 00faea17e2
4 changed files with 1 additions and 16 deletions

View File

@ -64,8 +64,7 @@ def pull_from_snapshot(package, version, unpack=False):
except ImportError:
import simplejson as json
except ImportError:
Logger.error("Require python-simplejson or python >= 2.7 to be "
"installed for snapshot.debian.org support")
Logger.error("Please install python-simplejson.")
sys.exit(1)
try:
@ -173,11 +172,6 @@ def main():
version = args[1]
distance = args[2] if len(args) > 2 else 1
if not os.path.exists('/usr/bin/dget'):
Logger.error("dget is not installed. "
"Please install the 'devscripts' package.")
sys.exit(1)
config = UDTConfig(opts.no_conf)
if opts.debian_mirror is None:
opts.debian_mirror = config.get_value('DEBIAN_MIRROR')

View File

@ -25,8 +25,6 @@ use File::Basename;
use Getopt::Long;
use AptPkg::Version;
die("Please install 'devscripts'\n") if(! grep -x "$_/dget", split(':',$ENV{'PATH'}));
my($name) = basename($0);
my($help, $mirror, $no_conf);
GetOptions('h|help' => \$help,

View File

@ -36,11 +36,6 @@ from ubuntutools.lp.udtexceptions import (SeriesNotFoundException,
PackageNotFoundException, PocketDoesNotExistError)
from ubuntutools.misc import splitReleasePocket, dsc_url
if not os.path.exists("/usr/bin/dget"):
print ("E: dget is not installed - please install the 'devscripts' package"
" and rerun this script again.")
sys.exit(1)
def main():
usage = "Usage: %prog <package> [release]"
opt_parser = OptionParser(usage)

View File

@ -24,8 +24,6 @@ use File::Basename;
use LWP::Simple;
use Getopt::Long;
die("Please install 'devscripts'\n") if(! grep -x "$_/dget", split(':',$ENV{'PATH'}));
my $REVU = "revu.ubuntuwire.com";
my($package) = lc($ARGV[0]) || usage(2);