import re
import psycopg2
import traceback
+import commands
from datetime import datetime, timedelta
from errno import ENOENT
from tempfile import mkstemp, mkdtemp
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
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)
__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
('OverrideSuite', 'overridesuite'),
('ChangelogBase', 'changelogbase')]
-
class Suite(object):
def __init__(self, *args, **kwargs):
pass