Lines Matching refs:location
75 def __init__(self, location, tmpdir): argument
76 self.location = location
78 self.srcdir = location
101 if self.location.startswith('nfs:'):
102 mount(self.location[4:], self.srcdir, '-o ro')
104 if stat.S_ISBLK(os.stat(self.location)[stat.ST_MODE]):
110 mount(self.location, self.srcdir, option)
121 def __init__(self, location, tmpdir): argument
123 MountedFetcher.__init__(self, location, tmpdir)
129 nfs = os.path.dirname(self.location[8:])
130 iso = os.path.basename(self.location[8:])
149 if '/' in self.location[7:]:
150 host = self.location[7:].split('/', 1)[0].replace(':', ' ')
151 basedir = self.location[7:].split('/', 1)[1]
153 host = self.location[7:].replace(':', ' ')
203 if not opts.location and not opts.kernel and not opts.ramdisk:
214 if opts.location:
215 location = opts.location
217 location = ''
218 if (location == ''
219 or location.startswith('http://') or location.startswith('https://')
220 or location.startswith('ftp://') or location.startswith('file://')
221 or (os.path.exists(location) and os.path.isdir(location))):
222 fetcher = Fetcher(location, opts.output_directory)
223 elif location.startswith('nfs:') or (os.path.exists(location) and not os.path.isdir(location)):
224 fetcher = MountedFetcher(location, opts.output_directory)
225 elif location.startswith('nfs+iso:'):
226 fetcher = NFSISOFetcher(location, opts.output_directory)
227 elif location.startswith('tftp://'):
228 fetcher = TFTPFetcher(location, opts.output_directory)
231 print >> sys.stderr, 'Unsupported location: %s' % location
258 print >> sys.stderr, 'Cannot get kernel from loacation: %s' % location