| |
@@ -951,6 +951,9 @@
|
| |
import_srpm_parser.add_argument(
|
| |
'--skip-diffs', help="Don't show diffs when import srpms",
|
| |
action='store_true')
|
| |
+ import_srpm_parser.add_argument(
|
| |
+ '--offline', help='Do not upload files into lookaside cache',
|
| |
+ action='store_true')
|
| |
import_srpm_parser.add_argument('srpm', help='Source rpm to import')
|
| |
import_srpm_parser.set_defaults(command=self.import_srpm)
|
| |
|
| |
@@ -1924,7 +1927,7 @@
|
| |
|
| |
def import_srpm(self):
|
| |
uploadfiles = self.cmd.import_srpm(self.args.srpm)
|
| |
- if uploadfiles:
|
| |
+ if uploadfiles and not self.args.offline:
|
| |
self.cmd.upload(uploadfiles, replace=True)
|
| |
if not self.args.skip_diffs:
|
| |
self.cmd.diff(cached=True)
|
| |
Add new argument '--offline' for command '*pkg import'. Files won't be
uploaded to lookaside cache.
Resolves: rhbz#1175262
Signed-off-by: Ondrej Nosek onosek@redhat.com