diff --git a/server/doc/mansrc/eit-cp.1.txt b/server/doc/mansrc/eit-cp.1.txt new file mode 100644 index 000000000..0971ce94b --- /dev/null +++ b/server/doc/mansrc/eit-cp.1.txt @@ -0,0 +1,64 @@ +eit-cp(1) +========= +:man source: eit {eitversion} +:man manual: eit {eitversion} + + +NAME +---- +eit-cp - copy packages from a repository to another + + +SYNOPSIS +-------- +eit cp [-h] [--deps] [ ...] + + +INTRODUCTION +------------ +Copy packages from source repository to destination repository. + + + +OPTIONS +------- +"eit cp" supports the following options which alters its behaviour. + + +POSITIONAL ARGUMENTS +~~~~~~~~~~~~~~~~~~~~ +**:: + source repository + +**:: + destination repository + +**:: + package dependency + +OPTIONAL ARGUMENTS +~~~~~~~~~~~~~~~~~~ +*--help*:: + show this help message and exit + +*--deps*:: + include dependencies + + + +AUTHORS +------- +Eit has been accidentally prototyped during a rainy Sunday by Fabio +Erculiani who was looking for innovative ways of handling package +bumps in Sabayon Entropy repositories. +A few months later, Eit saw the light. + + +REPORTING BUGS +-------------- +Report bugs to https://bugs.sabayon.org or directly to the author at +lxnay@sabayon.org. + +SEE ALSO +-------- + eit(1), eit-mv(1) diff --git a/server/doc/mansrc/eit-log.1.txt b/server/doc/mansrc/eit-log.1.txt new file mode 100644 index 000000000..8abf8fb9a --- /dev/null +++ b/server/doc/mansrc/eit-log.1.txt @@ -0,0 +1,56 @@ +eit-log(1) +========== +:man source: eit {eitversion} +:man manual: eit {eitversion} + + +NAME +---- +eit-log - show log for repository + + +SYNOPSIS +-------- +eit log [-h] [] + + +INTRODUCTION +------------ +Show log for given repository (if any, otherwise the current working one). +This commands opens repository ChangeLog.bz2 using *bzless*. + + + +OPTIONS +------- +"eit log" supports the following options which alters its behaviour. + + +POSITIONAL ARGUMENTS +~~~~~~~~~~~~~~~~~~~~ +**:: + repository + +OPTIONAL ARGUMENTS +~~~~~~~~~~~~~~~~~~ +*--help*:: + show this help message and exit + + + +AUTHORS +------- +Eit has been accidentally prototyped during a rainy Sunday by Fabio +Erculiani who was looking for innovative ways of handling package +bumps in Sabayon Entropy repositories. +A few months later, Eit saw the light. + + +REPORTING BUGS +-------------- +Report bugs to https://bugs.sabayon.org or directly to the author at +lxnay@sabayon.org. + +SEE ALSO +-------- + eit(1) diff --git a/server/doc/mansrc/eit-mv.1.txt b/server/doc/mansrc/eit-mv.1.txt new file mode 100644 index 000000000..ec572fa4f --- /dev/null +++ b/server/doc/mansrc/eit-mv.1.txt @@ -0,0 +1,66 @@ +eit-mv(1) +========= +:man source: eit {eitversion} +:man manual: eit {eitversion} + + +NAME +---- +eit-mv - move packages from a repository to another + + +SYNOPSIS +-------- +eit mv [-h] [--deps] [ [ ...]] + + +INTRODUCTION +------------ +Move packages from source repository to destination repository. +The operation is transactional, first package is copied to destination, +then is removed from source. + + + +OPTIONS +------- +"eit mv" supports the following options which alters its behaviour. + + +POSITIONAL ARGUMENTS +~~~~~~~~~~~~~~~~~~~~ +**:: + source repository + +**:: + destination repository + +**:: + package names (all if none) + +OPTIONAL ARGUMENTS +~~~~~~~~~~~~~~~~~~ +*--help*:: + show this help message and exit + +*--deps*:: + include dependencies + + + +AUTHORS +------- +Eit has been accidentally prototyped during a rainy Sunday by Fabio +Erculiani who was looking for innovative ways of handling package +bumps in Sabayon Entropy repositories. +A few months later, Eit saw the light. + + +REPORTING BUGS +-------------- +Report bugs to https://bugs.sabayon.org or directly to the author at +lxnay@sabayon.org. + +SEE ALSO +-------- + eit(1), eit-cp(1) diff --git a/server/doc/mansrc/eit.1.txt b/server/doc/mansrc/eit.1.txt index e89f2d17b..ea92072d4 100644 --- a/server/doc/mansrc/eit.1.txt +++ b/server/doc/mansrc/eit.1.txt @@ -162,5 +162,6 @@ lxnay@sabayon.org. SEE ALSO -------- eit-add(1), eit-branch(1), eit-bump(1), eit-checkout(1), eit-cleanup(1) - eit-commit(1), eit-notice(1), eit-repack(1) + eit-commit(1), eit-cp(1), eit-log(1), eit-mv(1), eit-notice(1) + eit-repack(1) diff --git a/server/eit/commands/cp.py b/server/eit/commands/cp.py index aa38b2a51..f41c4378d 100644 --- a/server/eit/commands/cp.py +++ b/server/eit/commands/cp.py @@ -95,6 +95,17 @@ class EitCp(EitCommand): sys.stdout.write(" ".join(outcome) + "\n") sys.stdout.flush() + INTRODUCTION = """\ +Copy packages from source repository to destination repository. +""" + SEE_ALSO = "eit-mv(1)" + + def man(self): + """ + Overridden from EitCommand. + """ + return self._man() + def parse(self): """ Overridden from EitCp """ parser = self._get_parser() diff --git a/server/eit/commands/log.py b/server/eit/commands/log.py index 7d8787ba3..c6c74f1ea 100644 --- a/server/eit/commands/log.py +++ b/server/eit/commands/log.py @@ -42,6 +42,17 @@ class EitLog(EitCommand): return parser + INTRODUCTION = """\ +Show log for given repository (if any, otherwise the current working one). +This commands opens repository ChangeLog.bz2 using *bzless*. +""" + + def man(self): + """ + Overridden from EitCommand. + """ + return self._man() + def parse(self): parser = self._get_parser() try: @@ -64,9 +75,7 @@ class EitLog(EitCommand): importance=1, level="error") return 1 - proc = subprocess.Popen( - "/bin/bzcat \"%s\" | ${PAGER:-/usr/bin/less}" % ( - changelog_path,), shell = True) + proc = subprocess.Popen(["/bin/bzless", changelog_path]) return proc.wait() diff --git a/server/eit/commands/mv.py b/server/eit/commands/mv.py index 48e5535f8..fbc1ebbde 100644 --- a/server/eit/commands/mv.py +++ b/server/eit/commands/mv.py @@ -49,6 +49,19 @@ class EitMv(EitCp): return parser + INTRODUCTION = """\ +Move packages from source repository to destination repository. +The operation is transactional, first package is copied to destination, +then is removed from source. +""" + SEE_ALSO = "eit-cp(1)" + + def man(self): + """ + Overridden from EitCommand. + """ + return self._man() + def parse(self): parser = self._get_parser() try: