[opensuse-buildservice] [Patch] Add --offline and --preload to osc build - v1
Hi all! Ever wanted to work offline e.g. in train on a package ? So after being encased hours in such a vehicle, here it is ... The attached patch for review and improvement adds this functionality: osc build --preload standard i586 pkg.spec will cache all dependencies and also the build config. To build offline, then use osc build --offline standard i586 pkg.spec Also -o / -l as shortcuts. Have phun! Jan-Simon
Am Donnerstag, 15. April 2010 23:16:35 schrieb Jan-Simon Möller:
Hi all!
Ever wanted to work offline e.g. in train on a package ? So after being encased hours in such a vehicle, here it is ...
The attached patch for review and improvement adds this functionality:
osc build --preload standard i586 pkg.spec
will cache all dependencies and also the build config.
To build offline, then use
osc build --offline standard i586 pkg.spec
Also -o / -l as shortcuts.
Hm, where is the advantage over just using "--noinit" ? Yes, you may can rebuild a chroot/vm, but only with the packages you have preloaded, right ? bye adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2010-04-16 07:17:23 +0200, Adrian Schröter wrote:
Hm, where is the advantage over just using "--noinit" ?
--noinit would still contact the obs right?
Yes, you may can rebuild a chroot/vm, but only with the packages you have preloaded, right ?
i think thats the plan yes. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Freitag, 16. April 2010 11:59:47 schrieb Marcus Rueckert:
On 2010-04-16 07:17:23 +0200, Adrian Schröter wrote:
Hm, where is the advantage over just using "--noinit" ?
--noinit would still contact the obs right?
no -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2010-04-16 07:17:23 +0200, Adrian Schröter wrote:
Am Donnerstag, 15. April 2010 23:16:35 schrieb Jan-Simon Möller:
Ever wanted to work offline e.g. in train on a package ? So after being encased hours in such a vehicle, here it is ...
The attached patch for review and improvement adds this functionality:
osc build --preload standard i586 pkg.spec
will cache all dependencies and also the build config.
To build offline, then use
osc build --offline standard i586 pkg.spec
Also -o / -l as shortcuts.
Hm, where is the advantage over just using "--noinit" ?
The difference is that "osc build --noinit ..." also calls build with "--no-init".
Yes, you may can rebuild a chroot/vm, but only with the packages you have preloaded, right ?
Yep that's possible with "--offline" (but not with "--no-init"). Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, On 2010-04-15 23:16:35 +0200, Jan-Simon Möller wrote:
Ever wanted to work offline e.g. in train on a package ? So after being encased hours in such a vehicle, here it is ...
The attached patch for review and improvement adds this functionality:
Your patch looks good - I really like the "--preload" option :) but I've some small remarks: - currently it probably doesn't work as expected because it'll still fetch missing binaries even if "--offline" is specified - "--offline" and "--preload" (and "--no-init") should be mutually exclusive - there's no need to add an "offline" parameter to the parse_repoarchdescr() method. Simply use "self.parse_repoarchdescr(args, opts.noinit or opts.offline, ...)" Please push your changes and I'll "fix" it afterwards. Thanks! Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (4)
-
Adrian Schröter
-
Jan-Simon Möller
-
Marcus Hüwe
-
Marcus Rueckert