Merge lp://staging/~launchpad-baby-gnu/ubumirror/feature-set-config-and-log-files-from-command-line into lp://staging/ubumirror

Proposed by Daniel Dehennin
Status: Needs review
Proposed branch: lp://staging/~launchpad-baby-gnu/ubumirror/feature-set-config-and-log-files-from-command-line
Merge into: lp://staging/ubumirror
Diff against target: 855 lines (+717/-46)
5 files modified
ubuarchive (+144/-10)
ubucdimage (+143/-9)
ubucloudimage (+144/-9)
ubuports (+143/-9)
uburelease (+143/-9)
To merge this branch: bzr merge lp://staging/~launchpad-baby-gnu/ubumirror/feature-set-config-and-log-files-from-command-line
Reviewer Review Type Date Requested Status
Ubumirror Developers Pending
Review via email: mp+279600@code.staging.launchpad.net

Description of the change

My patch add command line options to set the config file and the log file.

This avoid the duplication of the script when we want to mirror several repositories.

To post a comment you must log in.

Unmerged revisions

84. By Daniel Dehennin <email address hidden>

Set config and log files from command line

This enable the use by normal users without any access to “/etc/” or
“/var/log/” and the mirroring of several debian-like repositories, for
example:

    ./ubuarchive --conf ~/mirror1.conf --log ~/log/mirror1-archive.log
    ./ubucdimage --conf ~/mirror1.conf --log ~/log/mirror1-cdimage.log

    ./uburelease --conf ~/mirror2.conf --log ~/log/mirror2-release.log
    ./ubucdimage --conf ~/mirror2.conf --log ~/log/mirror2-cdimage.log

Here are the options common to all tools:

    -c, --conf <filename> Use the configuration file ”<filename>”.
                            Default: “/etc/ubumirror.conf"
    -l, --log <filename> Write log to file “<filename>”.
                            Default: “/etc/ubumirror.conf"
    -h, --help Show this message
    -v, --version Display version and copyright information
        --copyright Display copyright information
        --license Display license information
        --changes Display ChangeLog information

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: