aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/commands/create.py
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2008-11-11 17:21:41 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2008-11-11 17:21:41 +0000
commit3a7d4937f2fbd7b80f0762258380c82e1cbffe13 (patch)
tree2c1c1d6e66e065d30c60079c311437f28ccb5157 /RepSys/commands/create.py
parent86b2db69c2c1935ec282ef449a42349e5634a228 (diff)
parentbc9f60a727164caf513746b5fc04f999c968f799 (diff)
downloadmgarepo-3a7d4937f2fbd7b80f0762258380c82e1cbffe13.tar
mgarepo-3a7d4937f2fbd7b80f0762258380c82e1cbffe13.tar.gz
mgarepo-3a7d4937f2fbd7b80f0762258380c82e1cbffe13.tar.bz2
mgarepo-3a7d4937f2fbd7b80f0762258380c82e1cbffe13.tar.xz
mgarepo-3a7d4937f2fbd7b80f0762258380c82e1cbffe13.zip
make the V1_6_X branch the trunk
Diffstat (limited to 'RepSys/commands/create.py')
-rw-r--r--RepSys/commands/create.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/RepSys/commands/create.py b/RepSys/commands/create.py
index 56af1ef..ded8abe 100644
--- a/RepSys/commands/create.py
+++ b/RepSys/commands/create.py
@@ -1,6 +1,7 @@
#!/usr/bin/python
from RepSys import Error
from RepSys.command import *
+from RepSys.layout import package_url
from RepSys.rpmutil import create_package
import getopt
import sys
@@ -8,11 +9,14 @@ import sys
HELP = """\
Usage: repsys create [OPTIONS] URL
+Creates the minimal structure of a package in the repository.
+
Options:
-h Show this message
Examples:
- repsys create http://repos/svn/cnc/snapshot/newpkg
+ repsys create newpkg
+ repsys create svn+ssh://svn.mandriva.com/svn/packages/cooker/newpkg
"""
def parse_options():
@@ -20,7 +24,7 @@ def parse_options():
opts, args = parser.parse_args()
if len(args) != 1:
raise Error, "invalid arguments"
- opts.pkgdirurl = default_parent(args[0])
+ opts.pkgdirurl = package_url(args[0], mirrored=False)
opts.verbose = 1 # Unconfigurable
return opts