Revision 1296e42b

b/devflow/autopkg.py
140 140
                      action="store_true",
141 141
                      help="Specifies a source-only build, no binary packages"
142 142
                           " need to be made.")
143
    parser.add_option("--debian-branch",
144
                      dest="debian_branch",
145
                      default=None,
146
                      help="Use this debian branch, instead of"
147
                           "auto-discovering the debian branch to use")
143 148

  
144 149
    (options, args) = parser.parse_args()
145 150

  
......
193 198
    versioning.get_python_version()
194 199

  
195 200
    # Get the debian branch
196
    debian_branch = utils.get_debian_branch(branch)
201
    if options.debian_branch:
202
        debian_branch = options.debian_branch
203
    else:
204
        debian_branch = utils.get_debian_branch(branch)
197 205
    origin_debian = "origin/" + debian_branch
198 206

  
199 207
    # Clone the repo

Also available in: Unified diff