rem stringlengths 0 322k | add stringlengths 0 2.05M | context stringlengths 8 228k |
|---|---|---|
library_dirs = library_dirs) | library_dirs = library_dirs, extra_link_args = extra_link_args) | def unique(list): """Stolen from MapScript setup script""" dict = {} for item in list: dict[item] = '' return dict.keys() |
ogr_module] ) | ogr_module],debug=1 ) | def unique(list): """Stolen from MapScript setup script""" dict = {} for item in list: dict[item] = '' return dict.keys() |
if o is None: | if o is None or o == 'NULL': | def CloneGeogCS(self): o = _gdal.OSRCloneGeogCS( self._o ) if o is None: return None else: return SpatialReference(obj=o) |
if o is None: | if o is None or o == 'NULL': | def Clone(self): o = SpatialReference(obj=_gdal.OSRClone( self._o )) if o is None: return None else: return SpatialReference(obj=o) |
return _gdal.GDALColorTable( _ct ) | return ColorTable( _ct ) | def GetRasterColorTable(self): _ct = _gdal.GDALGetRasterColorTable( self._o ) if _ct is None: return None else: return _gdal.GDALColorTable( _ct ) |
def Empty( self, other_geom ): return _gdal.OGR_G_Empty( self._o, other_geom._o ) | def Empty( self ): return _gdal.OGR_G_Empty( self._o ) | def Empty( self, other_geom ): return _gdal.OGR_G_Empty( self._o, other_geom._o ) |
print ' [-list filename] [start_code [end_code]]' | print ' [-skip] [-list filename] [start_code [end_code]]' | def Usage(): print 'Usage: epsg_tr.py [-wkt] [-pretty_wkt] [-proj4] [-xml] [-postgis]' print ' [-list filename] [start_code [end_code]]' sys.exit(1) |
elif report_error: | else: | def trHandleCode(code, gen_dict_line, report_error, output_format): import time try: err = prj_srs.ImportFromEPSG( code ) except: err = 1 if err != 0 and report_error: print 'Unable to lookup ',code,', either not a valid EPSG' print 'code, or it the EPSG csv files are not accessable.' sys.exit(2) else: if output_for... |
(lat, long, height) = ct.TransformPoint(X, Y) | (long, lat, height) = ct.TransformPoint(X, Y) | def Usage(): print print 'Read coordinate system and geotransformation matrix from input' print 'file and report latitude/longitude coordinates for the center' print 'of the specified pixel.' print print 'Usage: tolatlong.py pixel line infile' print sys.exit( 1 ) |
print 'latitude: %fd\t\tlongitude: %fd' % (long, lat) print 'latitude: ', gdal.DecToDMS(long, 'Lat', 2), \ '\tlongitude: ', gdal.DecToDMS(lat, 'Long', 2) | print 'latitude: %fd\t\tlongitude: %fd' % (lat, long) print 'latitude: ', gdal.DecToDMS(lat, 'Lat', 2), \ '\tlongitude: ', gdal.DecToDMS(long, 'Long', 2) | def Usage(): print print 'Read coordinate system and geotransformation matrix from input' print 'file and report latitude/longitude coordinates for the center' print 'of the specified pixel.' print print 'Usage: tolatlong.py pixel line infile' print sys.exit( 1 ) |
if geom_o is None: | if geom_o is None or geom_o == 'NULL': | def GetGeometryRef( self ): geom_o = _gdal.OGR_F_GetGeometryRef( self._o ) |
fn = float(dline[1])*lsize fe = float(dline[2])*lsize | fn = float(dline[1]) fe = float(dline[2]) | def load_dict( filename ): lines = open( filename ).readlines() this_dict = {} for line in lines: if line[:8] != 'proj_name': tokens = string.split(line,',') for i in range(len(tokens)): tokens[i] = string.strip(tokens[i]) this_dict[tokens[0]] = tokens return this_dict |
_gdal.OGR_F_DumpReadable( self._o, None ) | _gdal.OGR_F_DumpReadable( self._o, 'NULL' ) | def DumpReadable(self): _gdal.OGR_F_DumpReadable( self._o, None ) |
srs = 'NULL' | srs_o = 'NULL' else: srs_o = srs._o | def CreateLayer(self, name, srs = None, geom_type = wkbUnknown, options = [] ): if srs is None: srs = 'NULL' md_c = _gdal.ListToStringList( options ) obj = _gdal.OGR_DS_CreateLayer( self._o, name, srs, geom_type, md_c) _gdal.CSLDestroy(md_c) if obj is None and obj != 'NULL': raise ValueError, gdal.GetLastErrorMsg() els... |
obj = _gdal.OGR_DS_CreateLayer( self._o, name, srs, geom_type, md_c) | obj = _gdal.OGR_DS_CreateLayer( self._o, name, srs_o, geom_type, md_c) | def CreateLayer(self, name, srs = None, geom_type = wkbUnknown, options = [] ): if srs is None: srs = 'NULL' md_c = _gdal.ListToStringList( options ) obj = _gdal.OGR_DS_CreateLayer( self._o, name, srs, geom_type, md_c) _gdal.CSLDestroy(md_c) if obj is None and obj != 'NULL': raise ValueError, gdal.GetLastErrorMsg() els... |
if srs_o is not None: | if srs_o is not None and srs_o != 'NULL': | def GetSpatialReference( self ): srs_o = _gdal.OGR_G_GetSpatialReference( self._o ) if srs_o is not None: return osr.SpatialReference( srs_o ) else: return None |
geo_x = gt[0] + x * gt[1] + y * gt[2] geo_y = gt[3] + x * gt[4] + y * gt[5] | geo_x = gt[0] + (x+0.5) * gt[1] + (y+0.5) * gt[2] geo_y = gt[3] + (x+0.5) * gt[4] + (y+0.5) * gt[5] | def Usage(): print 'Usage: gdal2xyz.py [-skip factor] [-srcwin xoff yoff width height]' print ' [-band b] srcfile [dstfile]' print sys.exit( 1 ) |
ar = numpy.reshape(ar, [1,win_xsize,win_ysize]) | ar = numpy.reshape(ar, [1,win_ysize,win_xsize]) | def BandReadAsArray( band, xoff, yoff, win_xsize, win_ysize, buf_xsize=None, buf_ysize=None, buf_obj=None ): """Pure python implementation of reading a chunk of a GDAL file into a numpy array. Used by the gdal.Band.ReadaAsArray method.""" if win_xsize is None: win_xsize = band.XSize if win_ysize is None: win_ysize = ... |
psize_y = -1 * abs(float(argv[i+1])) | psize_y = -1 * abs(float(argv[i+2])) | def Usage(): print 'Usage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]*' print ' [-ps pixelsize_x pixelsize_y] [-separate] [-v] [-pct]' print ' [-ul_lr ulx uly lrx lry] [-n nodata_value] [-init value]' print ' [-ot datatype] input_files' ... |
xsize = int((lrx - ulx) / geotransform[1]) ysize = int((lry - uly) / geotransform[5]) | xsize = int((lrx - ulx) / geotransform[1] + 0.5) ysize = int((lry - uly) / geotransform[5] + 0.5) | def Usage(): print 'Usage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]*' print ' [-ps pixelsize_x pixelsize_y] [-separate] [-v] [-pct]' print ' [-ul_lr ulx uly lrx lry] [-n nodata_value] [-init value]' print ' [-ot datatype] [-createonly]... |
usage=usage), | usage=usage, | def fsync(self, path, isfsyncfile): print "xmp.py:Xmp:fsync: path=%s, isfsyncfile=%s" % (self.root + path, isfsyncfile) return 0 |
os.stat(server.root) | if server.fuse_args.do_mount(): os.stat(server.root) | def fsync(self, path, isfsyncfile): print "xmp.py:Xmp:fsync: path=%s, isfsyncfile=%s" % (self.root + path, isfsyncfile) return 0 |
return (blocks_size, blocks, blocks_free, files, files_free, namelen) | return (blocks_size, blocks, blocks - blocks_free, blocks_free, files, files_free, namelen) | def statfs(self): """ Should return a tuple with the following 6 elements: - blocksize - size of file blocks, in bytes - totalblocks - total number of blocks in the filesystem - freeblocks - number of free blocks - totalfiles - total number of file inodes - freefiles - nunber of free file inodes Feel free to set any o... |
self.main_0_1_preamble() | args = self.main_0_1_preamble() | def main(self, args=None): """Enter filesystem service loop.""" |
b = a if compat_0_1: if self.compatmap.has_key(a): b = self.compatmap[a] d[a] = ErrnoWrapper(getattr(self, b)) | c = '' if compat_0_1 and hasattr(self, a + '_compat_0_1'): c = '_compat_0_1' d[a] = ErrnoWrapper(getattr(self, a + c)) | def main(self, args=None): """Enter filesystem service loop.""" |
self.fuse_args.mountpoint = self.mountpoint | cfargs = FuseArgs() cfargs.mountpoint = self.mountpoint | def main_0_1_preamble(self): |
self.fuse_args.add('debug') | cfargs.add('debug') | def main_0_1_preamble(self): |
self.fuse_args.add('allow_other') | cfargs.add('allow_other') | def main_0_1_preamble(self): |
self.fuse_args.add('kernel_cache') def tuple2stat(self, *a): | cfargs.add('kernel_cache') return cfargs.assemble() def getattr_compat_0_1(self, *a): | def main_0_1_preamble(self): |
def statfs2statvfs(self, *a): | def statfs_compat_0_1(self, *a): | def statfs2statvfs(self, *a): |
compatmap = { 'getattr' : 'tuple2stat', 'statfs' : 'statfs2statvfs' } | def statfs2statvfs(self, *a): | |
def Abort(self): return FuseAbort() | def Abort(self): return FuseAbort() | |
filename = os.path.join(basedir, 'Packages_%s.new' % arch) | filename = os.path.join(basedir, 'Packages_%s' % arch) | def write_controlfiles(self, basedir, suite): """Write the control files |
filename = os.path.join(basedir, 'Sources.new') | filename = os.path.join(basedir, 'Sources') | def write_controlfiles(self, basedir, suite): """Write the control files |
strict = not self.options.compatible | strict = True | def excuse_unsat_deps(self, pkg, src, arch, suite, excuse, excluded=[], conflicts=False): """Find unsatisfied dependencies for a binary package |
def iter_packages(self, packages, selected, hint=False): | def iter_packages(self, packages, selected, hint=False, nuninst=None): | def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one |
nuninst_comp = self.nuninst_orig.copy() | if nuninst: nuninst_comp = nuninst.copy() else: nuninst_comp = self.nuninst_orig.copy() | def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one |
self.output_write("recur: [%s] %s %d/%d\n" % (",".join(selected), "", len(packages), len(extra))) | self.output_write("recur: [%s] %s %d/%d\n" % ("", ",".join(selected), len(packages), len(extra))) | def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one |
pkg_name, suite, affected, undo = self.doop_source(pkg) | if pkg in pre_process: pkg_name, suite, affected, undo = pre_process[pkg] else: pkg_name, suite, affected, undo = self.doop_source(pkg) | def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one |
if hint: continue | if hint or pkg in selected: continue | def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one |
self.output_write("Apparently successful\n") | def iter_packages(self, packages, selected, hint=False): """Iter on the list of actions and apply them one-by-one | |
backup = self.nuninst_orig | def do_all(self, maxdepth=0, init=None, actions=None): """Testing update runner | |
self.nuninst_orig = nuninst_end (nuninst_end, extra) = self.iter_packages(upgrade_me, selected) | else: nuninst_end = None (nuninst_end, extra) = self.iter_packages(upgrade_me, selected, nuninst=nuninst_end) | def do_all(self, maxdepth=0, init=None, actions=None): """Testing update runner |
if arch not in self.systems: self.build_systems(arch) | self.build_systems(arch) | def __init__(self): """Class constructor |
nuninst[arch] = packages.split() | if arch in self.options.architectures: nuninst[arch] = packages.split() | def read_nuninst(self): """Read the non-installable report""" f = open(self.options.noninst_status) nuninst = {} for r in f: if ":" not in r: continue arch, packages = r.strip().split(":", 1) nuninst[arch] = packages.split() return nuninst |
tpkg = binaries[arch][0][p] if skip_archall and tpkg['architecture'] == 'all': continue | def add_nuninst(pkg, arch): if pkg not in nuninst[arch]: nuninst[arch].append(pkg) for p in binaries[arch][0][pkg]['rdepends']: tpkg = binaries[arch][0][p] if skip_archall and tpkg['architecture'] == 'all': continue r = check_installable(p, arch, 'testing', excluded=nuninst[arch], conflicts=True) if not r: add_nuninst(... | |
pkg = binaries[arch][0][pkg_name] if skip_archall and pkg['architecture'] == 'all': continue | def add_nuninst(pkg, arch): if pkg not in nuninst[arch]: nuninst[arch].append(pkg) for p in binaries[arch][0][pkg]['rdepends']: tpkg = binaries[arch][0][p] if skip_archall and tpkg['architecture'] == 'all': continue r = check_installable(p, arch, 'testing', excluded=nuninst[arch], conflicts=True) if not r: add_nuninst(... | |
if system[p][1][0] == None: continue | if len(system[p][1]) == 1 and system[p][1][0] == None: continue | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: if type(pkg_from) == list: system[pkg][1].extend(pkg_from) else: system[pkg][1].append(pkg_from) system[pk... |
if name in binary_u['provides']: continue | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: if type(pkg_from) == list: system[pkg][1].extend(pkg_from) else: system[pkg][1].append(pkg_from) system[pk... | |
if block[0] != pkg and block[0] in system: | if not (name in binary_u['provides'] and system[name][1] == [pkg]) and \ block[0] != pkg and block[0] in system: | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: if type(pkg_from) == list: system[pkg][1].extend(pkg_from) else: system[pkg][1].append(pkg_from) system[pk... |
if conflicts[c][3] == pkg: | i = 0 while i < len(conflicts[c]): if conflicts[c][i][3] == pkg: del conflicts[c][i] else: i = i + 1 if len(conflicts[c]) == 0: | def unregister_conflicts(pkg, conflicts): for c in conflicts.keys(): if conflicts[c][3] == pkg: del conflicts[c] |
return handle_conflict(pkg, system[source][1], system, conflicts) | for p in system[source][1]: if not p: return False output = handle_conflict(pkg, p, system, conflicts) if output: system, conflicts = output else: return False return (system, conflicts) | def handle_conflict(pkg, source, system, conflicts): # reached the top of the tree if not system[source][1]: return False # remove its conflicts unregister_conflicts(source, conflicts) # if there are alternatives, try them alternatives = system[source][0] for alt in alternatives: if satisfy(alt, [x for x in alternative... |
system[pkg] = (pkg_alt, pkg_from) | if type(pkg_from) != list: pkg_from = [pkg_from] system[pkg] = (pkg_alt or [], pkg_from) | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: return True binary_u = binaries[0][pkg] else: binary_u = None |
system[p] = ([], pkg) | system[p] = ([], [pkg]) | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: return True binary_u = binaries[0][pkg] else: binary_u = None |
name, version, op, conflicting = conflicts[pkg] if conflicting not in binary_u['provides'] and ( \ op == '' and version == '' or check_depends(binary_u['version'], op, version)): output = handle_conflict(pkg, conflicting, system.copy(), conflicts.copy()) if output: system, conflicts = output else: del system[pkg] re... | for name, version, op, conflicting in conflicts[pkg]: if conflicting not in binary_u['provides'] and ( \ op == '' and version == '' or check_depends(binary_u['version'], op, version)): output = handle_conflict(pkg, conflicting, system.copy(), conflicts.copy()) if output: system, conflicts = output else: del system[p... | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: return True binary_u = binaries[0][pkg] else: binary_u = None |
conflicts[block[0]] = (name, version, op, pkg) | if block[0] not in conflicts: conflicts[block[0]] = [] conflicts[block[0]].append((name, version, op, pkg)) | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: return True binary_u = binaries[0][pkg] else: binary_u = None |
for type in ('pre-depends', 'depends'): if type not in binary_u: continue dependencies.extend(parse_depends(binary_u[type])) | for key in ('pre-depends', 'depends'): if key not in binary_u: continue dependencies.extend(parse_depends(binary_u[key])) | def satisfy(pkg, pkg_alt=None, pkg_from=None, system=system, conflicts=conflicts, excluded=[]): # if it is real package and it is already installed, skip it and return True if pkg in binaries[0]: if pkg in system: return True binary_u = binaries[0][pkg] else: binary_u = None |
for arch in self.options.architectures.split(): | for arch in self.options.architectures: | def __init__(self): """Class constructor method: initialize and populate the data lists""" self.__parse_arguments() apt_pkg.init() self.date_now = int(((time.time() / (60*60)) - 15) / 24) self.sources = {'testing': self.read_sources(self.options.testing), 'unstable': self.read_sources(self.options.unstable), 'tpu': sel... |
for arch in self.options.architectures.split(): | for arch in self.options.architectures: | def maxver(self, pkg, dist): maxver = None if self.sources[dist].has_key(pkg): maxver = self.sources[dist][pkg]['version'] for arch in self.options.architectures.split(): if not self.binaries[dist][arch][0].has_key(pkg): continue pkgv = self.binaries[dist][arch][0][pkg]['version'] if maxver == None or apt_pkg.VersionCo... |
missing = [] | def get_dependency_solvers(self, block, arch, distribution): packages = [] missing = [] | |
return (True, packages) | def get_dependency_solvers(self, block, arch, distribution): packages = [] missing = [] | |
if name in self.binaries['unstable'][arch][1]: for prov in self.binaries['unstable'][arch][1][name]: package = self.binaries['unstable'][arch][0][prov] | if name in self.binaries[distribution][arch][1]: for prov in self.binaries[distribution][arch][1][name]: package = self.binaries[distribution][arch][0][prov] | def get_dependency_solvers(self, block, arch, distribution): packages = [] missing = [] |
packages.append(name) | packages.append(prov) | def get_dependency_solvers(self, block, arch, distribution): packages = [] missing = [] |
if len(packages) > 0: return (True, packages) if real_package: missing.append(name) return (False, missing) | return (len(packages) > 0, packages) | def get_dependency_solvers(self, block, arch, distribution): packages = [] missing = [] |
for pkg in source_u['binaries']: | for pkg in sorted(source_u['binaries']): | def should_upgrade_srcarch(self, src, arch, suite): # binnmu this arch? source_t = self.sources['testing'][src] source_u = self.sources[suite][src] |
excuse.addhtml("Ignoring %s %s (from %s) as it is arch: all" % (pkg, binary_u['version'], pkgsv)) | excuse.addhtml("Ignoring %s %s (from %s) as it is arch: all" % (pkg_name, binary_u['version'], pkgsv)) | def should_upgrade_srcarch(self, src, arch, suite): # binnmu this arch? source_t = self.sources['testing'][src] source_u = self.sources[suite][src] |
excuse.addhtml("From wrong source: %s %s (%s not %s)" % (pkg, binary_u['version'], pkgsv, source_t['version'])) | excuse.addhtml("From wrong source: %s %s (%s not %s)" % (pkg_name, binary_u['version'], pkgsv, source_t['version'])) | def should_upgrade_srcarch(self, src, arch, suite): # binnmu this arch? source_t = self.sources['testing'][src] source_u = self.sources[suite][src] |
excuse.addhtml("New binary: %s (%s)" % (pkg, binary_u['version'])) | excuse.addhtml("New binary: %s (%s)" % (pkg_name, binary_u['version'])) | def should_upgrade_srcarch(self, src, arch, suite): # binnmu this arch? source_t = self.sources['testing'][src] source_u = self.sources[suite][src] |
excuse.addhtml("Not downgrading: %s (%s to %s)" % (pkg, binary_t['version'], binary_u['version'])) | excuse.addhtml("Not downgrading: %s (%s to %s)" % (pkg_name, binary_t['version'], binary_u['version'])) | def should_upgrade_srcarch(self, src, arch, suite): # binnmu this arch? source_t = self.sources['testing'][src] source_u = self.sources[suite][src] |
excuse.addhtml("Updated binary: %s (%s to %s)" % (pkg, binary_t['version'], binary_u['version'])) | excuse.addhtml("Updated binary: %s (%s to %s)" % (pkg_name, binary_t['version'], binary_u['version'])) | def should_upgrade_srcarch(self, src, arch, suite): # binnmu this arch? source_t = self.sources['testing'][src] source_u = self.sources[suite][src] |
for pkg in set(k.split("/")[0] for k in self.sources['testing'][src]['binaries']): | for pkg in sorted([x.split("/")[0] for x in self.sources['testing'][src]['binaries'] if x.endswith("/"+arch)]): | def should_upgrade_srcarch(self, src, arch, suite): # binnmu this arch? source_t = self.sources['testing'][src] source_u = self.sources[suite][src] |
for arch in self.options.architectures.split(): | for arch in self.options.architectures: | def should_upgrade_src(self, src, suite): source_u = self.sources[suite][src] if src in self.sources['testing']: source_t = self.sources['testing'][src] if apt_pkg.VersionCompare(source_t['version'], source_u['version']) == 0: # Candidate for binnmus only return False else: source_t = None |
for pkg in set(k.split("/")[0] for k in self.sources[suite][src]['binaries']): | for pkg in sorted([x.split("/")[0] for x in self.sources[suite][src]['binaries'] if x.endswith("/"+arch)]): | def should_upgrade_src(self, src, suite): source_u = self.sources[suite][src] if src in self.sources['testing']: source_t = self.sources['testing'][src] if apt_pkg.VersionCompare(source_t['version'], source_u['version']) == 0: # Candidate for binnmus only return False else: source_t = None |
for arch in self.options.architectures.split(): | for arch in self.options.architectures: | def main(self): """Main method, entry point for the analisys""" |
if not mark_passed and position < 0: | if not compatible and not mark_passed and position < 0: | def iter_packages(self, packages, hint=False): """Iter on the list of actions and apply them one-by-one |
continue | def iter_packages(self, packages, hint=False): """Iter on the list of actions and apply them one-by-one | |
for k in ('Pre-Depends', 'Depends', 'Provides'): | for k in ('Pre-Depends', 'Depends', 'Provides', 'Conflicts'): | def read_binaries(self, basedir, distribution, arch): """Read the list of binary packages from the specified directory The binary packages are read from the `Packages_${arch}' files within the directory specified as `basedir' parameter, replacing ${arch} with the value of the arch parameter. Considering the large amou... |
for block, block_txt in map(None, apt_pkg.ParseDepends(binary_u[type_key]), binary_u[type_key].split(',')): | for block, block_txt in zip(apt_pkg.ParseDepends(binary_u[type_key]), binary_u[type_key].split(',')): | def excuse_unsat_deps(self, pkg, src, arch, suite, excuse=None, excluded=[]): """Find unsatisfied dependencies for a binary package |
binaries = [] | def doop_source(self, pkg): | |
binaries.append(p) | def doop_source(self, pkg): | |
if p not in binaries: binaries.append(p) | def doop_source(self, pkg): | |
return (pkg_name, affected, binaries, undo) | return (pkg_name, suite, affected, undo) | def doop_source(self, pkg): |
pkg_name, affected, binaries, undo = self.doop_source(pkg) | pkg_name, suite, affected, undo = self.doop_source(pkg) | def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst() |
self.binaries['testing'][arch][0][p[0]]['source'] == pkg_name or \ | def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst() | |
r = self.excuse_unsat_deps(p[0], None, arch, 'testing', None) | r = self.excuse_unsat_deps(p[0], None, arch, 'testing', None, excluded=[]) | def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst() |
if k in self.sources['testing']: for p in self.sources['testing'][k]['binaries']: | if k in self.sources[suite]: for p in self.sources[suite][k]['binaries']: | def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst() |
binaries[arch][0][binary] = undo['binaries'][p] | if binary[0] == "-": del binaries[arch][0][binary[1:]] else: binaries[arch][0][binary] = undo['binaries'][p] | def iter_packages(self, packages, output): """Iter on the list of actions and apply them one-by-one |
if not arch: | if not (arch and pkg[0] == '-'): | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
binary, arch = p.split("/") | binary, parch = p.split("/") if arch and parch != arch: continue | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
binary not in self.binaries[suite][arch][0] and \ | binary not in self.binaries[suite][parch][0] and \ | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
binaries[arch][0][binary].get('section', None) in self.options.smooth_updates): | binaries[parch][0][binary].get('section', None) in self.options.smooth_updates): | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
undo['binaries'][p] = binaries[arch][0][binary] | undo['binaries'][p] = binaries[parch][0][binary] | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
for j in binaries[arch][0][binary]['rdepends']: key = (j, arch) | for j in binaries[parch][0][binary]['rdepends']: key = (j, parch) | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
for j in binaries[arch][0][binary]['provides']: key = j + "/" + arch | for j in binaries[parch][0][binary]['provides']: key = j + "/" + parch | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
undo['virtual'][key] = binaries[arch][1][j][:] binaries[arch][1][j].remove(binary) if len(binaries[arch][1][j]) == 0: del binaries[arch][1][j] | undo['virtual'][key] = binaries[parch][1][j][:] binaries[parch][1][j].remove(binary) if len(binaries[parch][1][j]) == 0: del binaries[parch][1][j] | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
del binaries[arch][0][binary] | del binaries[parch][0][binary] | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
undo['sources'][pkg_name] = source del sources['testing'][pkg_name] | if not arch: undo['sources'][pkg_name] = source del sources['testing'][pkg_name] | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
else: if pkg_name in binaries[arch][0]: undo['binaries'][pkg_name + "/" + arch] = binaries[arch][0][pkg_name] for j in binaries[arch][0][pkg_name]['rdepends']: key = (j, arch) if key not in affected: affected.append(key) if pkg[0] != "-": undo['binaries']['-' + pkg] = True source = {'binaries': [pkg]} else: del binar... | elif pkg_name in binaries[arch][0]: undo['binaries'][pkg_name + "/" + arch] = binaries[arch][0][pkg_name] for j in binaries[arch][0][pkg_name]['rdepends']: key = (j, arch) if key not in affected: affected.append(key) del binaries[arch][0][pkg_name] | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
binary, arch = p.split("/") key = (binary, arch) | binary, parch = p.split("/") if arch and parch != arch: continue key = (binary, parch) | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
if binary in binaries[arch][0]: | if binary in binaries[parch][0]: | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.