Mailinglist Archive: zypp-devel (92 mails)
| < Previous | Next > |
[zypp-devel] Re: [zypp-commit] r6459 - /trunk/zypper/src/zypper-sources.cc
- From: Stanislav Visnovsky <visnov@xxxxxxx>
- Date: Mon, 6 Aug 2007 09:35:15 +0200
- Message-id: <200708060935.15526.visnov@xxxxxxx>
Hi Duncan!
Please, document this fact in the man page. Thanks!
Stano
Dňa Pi 3. August 2007 17:18 dmacvicar@xxxxxxxxxxxxxxxx napísal:
> Author: dmacvicar
> Date: Fri Aug 3 17:18:55 2007
> New Revision: 6459
>
> URL: http://svn.opensuse.org/viewcvs/zypp?rev=6459&view=rev
> Log:
> - zypper uses tribool internally. So autorefresh and enabled now
> have this order of preference:
> - cmd line value
> - .repo file
> - zypp default
>
> Modified:
> trunk/zypper/src/zypper-sources.cc
>
> Modified: trunk/zypper/src/zypper-sources.cc
> URL:
> http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-sources.cc?rev
>=6459&r1=6458&r2=6459&view=diff
> ===========================================================================
>=== --- trunk/zypper/src/zypper-sources.cc (original)
> +++ trunk/zypper/src/zypper-sources.cc Fri Aug 3 17:18:55 2007
> @@ -366,10 +366,10 @@
> repo.setAlias(alias.empty() ? timestamp() : alias);
> repo.addBaseUrl(url);
>
> - if ( enabled != indeterminate )
> - repo.setEnabled(enabled);
> - if ( autorefresh != indeterminate )
> - repo.setAutorefresh(autorefresh);
> + if ( !indeterminate(enabled) )
> + repo.setEnabled((enabled == true));
> + if ( !indeterminate(autorefresh) )
> + repo.setAutorefresh((autorefresh == true));
>
> return add_repo(repo);
> }
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
Please, document this fact in the man page. Thanks!
Stano
Dňa Pi 3. August 2007 17:18 dmacvicar@xxxxxxxxxxxxxxxx napísal:
> Author: dmacvicar
> Date: Fri Aug 3 17:18:55 2007
> New Revision: 6459
>
> URL: http://svn.opensuse.org/viewcvs/zypp?rev=6459&view=rev
> Log:
> - zypper uses tribool internally. So autorefresh and enabled now
> have this order of preference:
> - cmd line value
> - .repo file
> - zypp default
>
> Modified:
> trunk/zypper/src/zypper-sources.cc
>
> Modified: trunk/zypper/src/zypper-sources.cc
> URL:
> http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-sources.cc?rev
>=6459&r1=6458&r2=6459&view=diff
> ===========================================================================
>=== --- trunk/zypper/src/zypper-sources.cc (original)
> +++ trunk/zypper/src/zypper-sources.cc Fri Aug 3 17:18:55 2007
> @@ -366,10 +366,10 @@
> repo.setAlias(alias.empty() ? timestamp() : alias);
> repo.addBaseUrl(url);
>
> - if ( enabled != indeterminate )
> - repo.setEnabled(enabled);
> - if ( autorefresh != indeterminate )
> - repo.setAutorefresh(autorefresh);
> + if ( !indeterminate(enabled) )
> + repo.setEnabled((enabled == true));
> + if ( !indeterminate(autorefresh) )
> + repo.setAutorefresh((autorefresh == true));
>
> return add_repo(repo);
> }
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |