X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=559dbf17a98340169319bc06dddbf3e1d32dae0b;hb=d34d27f3196d602d8957463b4495cefbf402dc66;hp=fbebec5071126657aa19ac479080460faf7a5132;hpb=d9daaa0b74845853a09b34cd930f6f2879bc1254;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index fbebec50..559dbf17 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -441,8 +441,8 @@ MINIMAL_APT_CONF=""" Dir { ArchiveDir "%(archivepath)s"; - OverrideDir "/srv/ftp.debian.org/scripts/override/"; - CacheDir "/srv/ftp.debian.org/database/"; + OverrideDir "/srv/ftp-master.debian.org/scripts/override/"; + CacheDir "/srv/ftp-master.debian.org/database/"; }; Default @@ -1511,7 +1511,7 @@ def get_location(location, component=None, archive=None, session=None): and archive @type location: string - @param location: the path of the location, e.g. I{/srv/ftp.debian.org/ftp/pool/} + @param location: the path of the location, e.g. I{/srv/ftp-master.debian.org/ftp/pool/} @type component: string @param component: the component name (if None, no restriction applied) @@ -2212,30 +2212,6 @@ def get_source_in_suite(source, suite, session=None): __all__.append('get_source_in_suite') -@session_wrapper -def get_all_sources_in_suite(suitename, session=None): - """ - Returns list of sources and versions found in a given suite - - - B{suite} - a suite name, eg. I{unstable} - - @type suite: string - @param suite: the suite name - - @rtype: dictionary - @return: the version for I{source} in I{suite} - - """ - query = """SELECT source, version FROM source_suite - WHERE suite_name=:suitename - ORDER BY source""" - - vals = {'suitename': suitename} - - return session.execute(query, vals) - -__all__.append('get_all_sources_in_suite') - ################################################################################ @session_wrapper