Part of lp.archivepublisher.scripts.generate_contents_files View In Hierarchy
Method | add_my_options | See LaunchpadScript . |
Method | name | See LaunchpadScript . |
Method | processOptions | Handle command-line options. |
Method | setUpContentArchive | Make sure the content_archive directories exist. |
Method | getSuites | Return suites that need Contents files. |
Method | getArchs | Query architectures supported by the suite. |
Method | getDirs | Subdirectories needed for each component. |
Method | writeAptContentsConf | Write apt-contents.conf file. |
Method | createComponentDirs | Create the content archive's tree for all of its components. |
Method | copyOverrides | Copy overrides into the content archive. |
Method | runAptFTPArchive | Run apt-ftparchive to produce the Contents files. |
Method | generateContentsFiles | Generate Contents files. |
Method | updateContentsFile | Update Contents file, if it has changed. |
Method | updateContentsFiles | Update all Contents files that have changed. |
Method | setUp | Prepare configuration and filesystem state for the script's work. |
Method | process | Do the bulk of the work. |
Method | main | See LaunchpadScript . |
Inherited from LaunchpadCronScript:
Method | __init__ | Construct new LaunchpadScript. |
Method | get_last_activity | Return the last activity, if any. |
Method | record_activity | Record the successful completion of the script. |
Inherited from LaunchpadScript (via LaunchpadCronScript):
Method | handle_options | Undocumented |
Method | dbuser | Enable subclasses to override with command-line arguments. |
Method | login | Super-convenience method that avoids the import. |
Method | lockfilename | Return lockfilename. |
Method | lockfilepath | Undocumented |
Method | setup_lock | Create lockfile. |
Method | lock_or_die | Attempt to lock, and sys.exit(1) if the lock's already taken. |
Method | unlock | Release the lock. Do this before going home. |
Method | run | Actually run the script, executing zcml and initZopeless. |
Method | lock_and_run | Call lock_or_die(), and then run() the script. |
Method | _init_zca | Initialize the ZCA, this can be overridden for testing purposes. |
Method | _init_db | Initialize the database transaction. |
This method won't access the database.
This method may take a long time to run. This method won't access the database.
This method may take a long time to run. This method won't access the database.
Parameters | override_root | Copy of self.config.overrideroot that can be
evaluated without accessing the database. |
distro_name | Copy of self.distribution.name that can be
evaluated without accessing the database. |