[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-16 Thread Andreas Hasenack
This fix is very important for Landscape. Landscape _will_not_work_
without it.

** Summary changed:

- landscape-client should have a cron job for updating smart package data
+ landscape-client must have a cron job for updating smart package data

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-18 Thread Andreas Hasenack
** Changed in: landscape-client (Ubuntu)
   Status: New => In Progress

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-19 Thread Mathias Gug
** Changed in: landscape-client (Ubuntu)
   Importance: Undecided => Critical

** Changed in: landscape-client (Ubuntu)
   Target: None => ubuntu-8.10-beta

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Steve Langasek
Hi Chris,

Given that landscape-client starts a daemon if enabled (/usr/bin
/landscape-client, launched from /etc/init.d/landscape-client), wouldn't
it be preferable to have landscape-client itself run this update
periodically, rather than having cron run it?

Alternatively, could you adjust this cron job to source /etc/default
/landscape-client, and only run the update when landscape is enabled,
the way the init script itself does?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Mathias Gug
Would a daily cron job be possible ?

An hourly cron job would put unnecessary strain on the archive. Update-
notifier and the apt update cron job are run on daily basis.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Andreas Hasenack
What about this for the cron job? It only runs if landscape-client is
enabled.

#!/bin/sh

[ -f "/etc/default/landscape-client" ] || exit 0

source /etc/default/landscape-client

[ "$RUN" -eq "1" ] && /usr/share/smart/smart update > /dev/null 2>&1

exit 0

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Launchpad Bug Tracker
This bug was fixed in the package landscape-client - 1.0.21-0ubuntu2

---
landscape-client (1.0.21-0ubuntu2) intrepid; urgency=low

  * debian/rules: Install an hourly cron job to update smart package data.
Thanks to Christopher Armstrong (LP: #268765).
  * debian/control:
- Move ${misc:Depends} to Depends.
- Add VCS-* headers.
  * debian/landscape-client.postrm:
- remove /etc/default/landscape-client when the package is purged.

 -- Mathias Gug <[EMAIL PROTECTED]>   Tue, 23 Sep 2008 18:19:26 -0400

** Changed in: landscape-client (Ubuntu)
   Status: In Progress => Fix Released

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Martin Pitt
Erm, isn't a hourly cronjob a bit exaggerated? Mirrors only update
daily, and the already existing cronjob for apt runs once a day.

Also, why can't smart use the already existing downloaded apt cache?
Eventually it just gets the Packages.gz files, we don't provide any
other index. Why does it need to download them a second time?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Andreas Hasenack
This hourly cronjob was debated yesterday on #ubuntu-devel. For now, we
are keeping it, specially because we changed it so it only runs when
landscape-client itself is running:

 niemeyer: the concern is to put too much load on the servers and 
mirrors
 mathiaz: I agree that if you're managing a bunch of workstations 
centrally, you want the average latency to be much lower than 12h
 mathiaz: Well, I agree.. it would consume less resources from the 
server
* warp10 has quit (Read error: 110 (Connection timed out))
 mathiaz: The question, though, is if it makes an important 
difference or not
 mathiaz: It does make a difference for Landscape usability
 mathiaz: If you're concerned about it, we can ask elmo about it
 niemeyer: the main raise I'm asking is that the default ubuntu 
install (with apt) doesn't update on a hourly basis.
 mathiaz: It's a slightly different use case I guess
 niemeyer: right - if it makes a difference for landscape usability 
than a hourly cron job is the best option
 mathiaz: We can always fire APT/Synaptic/whatever and get the 
current infomration
 mathiaz: For a server-side solution that's not so practical
* warp10_ is now known as warp10
 hmm, on-demand triggering of an update check isn't possible?
 slangasek: It is definitely possible, but it's a bad UI
* effie_jayx has quit (Remote closed the connection)
 ok.  I imagine it would be a suboptimal user experience regardless, 
due to the latency of checking
* seb128 has quit ("Ex-Chat")
 slangasek: Try to imagine something like "The information you're 
looking at is 20h old.  If you want to know the current updates, click on 
Update All Systems and come back in a few minutes."
 right :)
* seb128 ([EMAIL PROTECTED]/member/seb128) has joined #ubuntu-devel
 re (sorry, got some spontaneous guests)
 anyway, I'm certainly not arguing against the 1h cronjob

About smart using pkglist from apt, it may happen sometime in the
future, but not now. I can imagine a few people becoming concerned if
suddenly smart used apt's cache, or, as it would indeed happen, "smart
update" also updated apt's cache. It would have to go both ways.

And remember that smart works with more package resolvers/systems than
just apt/deb, so such a solution would probably be better if it were
generalized.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Christopher Armstrong
This only required packaging change, not upstream change, so marking
Invalid for landscape-client upstream

** Changed in: landscape-client
   Status: In Progress => Invalid

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-16 Thread Andreas Hasenack
This fix is very important for Landscape. Landscape _will_not_work_
without it.

** Summary changed:

- landscape-client should have a cron job for updating smart package data
+ landscape-client must have a cron job for updating smart package data

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-18 Thread Andreas Hasenack
** Changed in: landscape-client (Ubuntu)
   Status: New => In Progress

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-19 Thread Mathias Gug
** Changed in: landscape-client (Ubuntu)
   Importance: Undecided => Critical

** Changed in: landscape-client (Ubuntu)
   Target: None => ubuntu-8.10-beta

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Steve Langasek
Hi Chris,

Given that landscape-client starts a daemon if enabled (/usr/bin
/landscape-client, launched from /etc/init.d/landscape-client), wouldn't
it be preferable to have landscape-client itself run this update
periodically, rather than having cron run it?

Alternatively, could you adjust this cron job to source /etc/default
/landscape-client, and only run the update when landscape is enabled,
the way the init script itself does?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Mathias Gug
Would a daily cron job be possible ?

An hourly cron job would put unnecessary strain on the archive. Update-
notifier and the apt update cron job are run on daily basis.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Andreas Hasenack
What about this for the cron job? It only runs if landscape-client is
enabled.

#!/bin/sh

[ -f "/etc/default/landscape-client" ] || exit 0

source /etc/default/landscape-client

[ "$RUN" -eq "1" ] && /usr/share/smart/smart update > /dev/null 2>&1

exit 0

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Launchpad Bug Tracker
This bug was fixed in the package landscape-client - 1.0.21-0ubuntu2

---
landscape-client (1.0.21-0ubuntu2) intrepid; urgency=low

  * debian/rules: Install an hourly cron job to update smart package data.
Thanks to Christopher Armstrong (LP: #268765).
  * debian/control:
- Move ${misc:Depends} to Depends.
- Add VCS-* headers.
  * debian/landscape-client.postrm:
- remove /etc/default/landscape-client when the package is purged.

 -- Mathias Gug <[EMAIL PROTECTED]>   Tue, 23 Sep 2008 18:19:26 -0400

** Changed in: landscape-client (Ubuntu)
   Status: In Progress => Fix Released

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Martin Pitt
Erm, isn't a hourly cronjob a bit exaggerated? Mirrors only update
daily, and the already existing cronjob for apt runs once a day.

Also, why can't smart use the already existing downloaded apt cache?
Eventually it just gets the Packages.gz files, we don't provide any
other index. Why does it need to download them a second time?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Andreas Hasenack
This hourly cronjob was debated yesterday on #ubuntu-devel. For now, we
are keeping it, specially because we changed it so it only runs when
landscape-client itself is running:

 niemeyer: the concern is to put too much load on the servers and 
mirrors
 mathiaz: I agree that if you're managing a bunch of workstations 
centrally, you want the average latency to be much lower than 12h
 mathiaz: Well, I agree.. it would consume less resources from the 
server
* warp10 has quit (Read error: 110 (Connection timed out))
 mathiaz: The question, though, is if it makes an important 
difference or not
 mathiaz: It does make a difference for Landscape usability
 mathiaz: If you're concerned about it, we can ask elmo about it
 niemeyer: the main raise I'm asking is that the default ubuntu 
install (with apt) doesn't update on a hourly basis.
 mathiaz: It's a slightly different use case I guess
 niemeyer: right - if it makes a difference for landscape usability 
than a hourly cron job is the best option
 mathiaz: We can always fire APT/Synaptic/whatever and get the 
current infomration
 mathiaz: For a server-side solution that's not so practical
* warp10_ is now known as warp10
 hmm, on-demand triggering of an update check isn't possible?
 slangasek: It is definitely possible, but it's a bad UI
* effie_jayx has quit (Remote closed the connection)
 ok.  I imagine it would be a suboptimal user experience regardless, 
due to the latency of checking
* seb128 has quit ("Ex-Chat")
 slangasek: Try to imagine something like "The information you're 
looking at is 20h old.  If you want to know the current updates, click on 
Update All Systems and come back in a few minutes."
 right :)
* seb128 ([EMAIL PROTECTED]/member/seb128) has joined #ubuntu-devel
 re (sorry, got some spontaneous guests)
 anyway, I'm certainly not arguing against the 1h cronjob

About smart using pkglist from apt, it may happen sometime in the
future, but not now. I can imagine a few people becoming concerned if
suddenly smart used apt's cache, or, as it would indeed happen, "smart
update" also updated apt's cache. It would have to go both ways.

And remember that smart works with more package resolvers/systems than
just apt/deb, so such a solution would probably be better if it were
generalized.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Christopher Armstrong
This only required packaging change, not upstream change, so marking
Invalid for landscape-client upstream

** Changed in: landscape-client
   Status: In Progress => Invalid

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-16 Thread Andreas Hasenack
This fix is very important for Landscape. Landscape _will_not_work_
without it.

** Summary changed:

- landscape-client should have a cron job for updating smart package data
+ landscape-client must have a cron job for updating smart package data

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-18 Thread Andreas Hasenack
** Changed in: landscape-client (Ubuntu)
   Status: New => In Progress

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-19 Thread Mathias Gug
** Changed in: landscape-client (Ubuntu)
   Importance: Undecided => Critical

** Changed in: landscape-client (Ubuntu)
   Target: None => ubuntu-8.10-beta

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Steve Langasek
Hi Chris,

Given that landscape-client starts a daemon if enabled (/usr/bin
/landscape-client, launched from /etc/init.d/landscape-client), wouldn't
it be preferable to have landscape-client itself run this update
periodically, rather than having cron run it?

Alternatively, could you adjust this cron job to source /etc/default
/landscape-client, and only run the update when landscape is enabled,
the way the init script itself does?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Mathias Gug
Would a daily cron job be possible ?

An hourly cron job would put unnecessary strain on the archive. Update-
notifier and the apt update cron job are run on daily basis.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Andreas Hasenack
What about this for the cron job? It only runs if landscape-client is
enabled.

#!/bin/sh

[ -f "/etc/default/landscape-client" ] || exit 0

source /etc/default/landscape-client

[ "$RUN" -eq "1" ] && /usr/share/smart/smart update > /dev/null 2>&1

exit 0

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Launchpad Bug Tracker
This bug was fixed in the package landscape-client - 1.0.21-0ubuntu2

---
landscape-client (1.0.21-0ubuntu2) intrepid; urgency=low

  * debian/rules: Install an hourly cron job to update smart package data.
Thanks to Christopher Armstrong (LP: #268765).
  * debian/control:
- Move ${misc:Depends} to Depends.
- Add VCS-* headers.
  * debian/landscape-client.postrm:
- remove /etc/default/landscape-client when the package is purged.

 -- Mathias Gug <[EMAIL PROTECTED]>   Tue, 23 Sep 2008 18:19:26 -0400

** Changed in: landscape-client (Ubuntu)
   Status: In Progress => Fix Released

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Martin Pitt
Erm, isn't a hourly cronjob a bit exaggerated? Mirrors only update
daily, and the already existing cronjob for apt runs once a day.

Also, why can't smart use the already existing downloaded apt cache?
Eventually it just gets the Packages.gz files, we don't provide any
other index. Why does it need to download them a second time?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Andreas Hasenack
This hourly cronjob was debated yesterday on #ubuntu-devel. For now, we
are keeping it, specially because we changed it so it only runs when
landscape-client itself is running:

 niemeyer: the concern is to put too much load on the servers and 
mirrors
 mathiaz: I agree that if you're managing a bunch of workstations 
centrally, you want the average latency to be much lower than 12h
 mathiaz: Well, I agree.. it would consume less resources from the 
server
* warp10 has quit (Read error: 110 (Connection timed out))
 mathiaz: The question, though, is if it makes an important 
difference or not
 mathiaz: It does make a difference for Landscape usability
 mathiaz: If you're concerned about it, we can ask elmo about it
 niemeyer: the main raise I'm asking is that the default ubuntu 
install (with apt) doesn't update on a hourly basis.
 mathiaz: It's a slightly different use case I guess
 niemeyer: right - if it makes a difference for landscape usability 
than a hourly cron job is the best option
 mathiaz: We can always fire APT/Synaptic/whatever and get the 
current infomration
 mathiaz: For a server-side solution that's not so practical
* warp10_ is now known as warp10
 hmm, on-demand triggering of an update check isn't possible?
 slangasek: It is definitely possible, but it's a bad UI
* effie_jayx has quit (Remote closed the connection)
 ok.  I imagine it would be a suboptimal user experience regardless, 
due to the latency of checking
* seb128 has quit ("Ex-Chat")
 slangasek: Try to imagine something like "The information you're 
looking at is 20h old.  If you want to know the current updates, click on 
Update All Systems and come back in a few minutes."
 right :)
* seb128 ([EMAIL PROTECTED]/member/seb128) has joined #ubuntu-devel
 re (sorry, got some spontaneous guests)
 anyway, I'm certainly not arguing against the 1h cronjob

About smart using pkglist from apt, it may happen sometime in the
future, but not now. I can imagine a few people becoming concerned if
suddenly smart used apt's cache, or, as it would indeed happen, "smart
update" also updated apt's cache. It would have to go both ways.

And remember that smart works with more package resolvers/systems than
just apt/deb, so such a solution would probably be better if it were
generalized.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Christopher Armstrong
This only required packaging change, not upstream change, so marking
Invalid for landscape-client upstream

** Changed in: landscape-client
   Status: In Progress => Invalid

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-16 Thread Andreas Hasenack
This fix is very important for Landscape. Landscape _will_not_work_
without it.

** Summary changed:

- landscape-client should have a cron job for updating smart package data
+ landscape-client must have a cron job for updating smart package data

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-18 Thread Andreas Hasenack
** Changed in: landscape-client (Ubuntu)
   Status: New => In Progress

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-19 Thread Mathias Gug
** Changed in: landscape-client (Ubuntu)
   Importance: Undecided => Critical

** Changed in: landscape-client (Ubuntu)
   Target: None => ubuntu-8.10-beta

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Steve Langasek
Hi Chris,

Given that landscape-client starts a daemon if enabled (/usr/bin
/landscape-client, launched from /etc/init.d/landscape-client), wouldn't
it be preferable to have landscape-client itself run this update
periodically, rather than having cron run it?

Alternatively, could you adjust this cron job to source /etc/default
/landscape-client, and only run the update when landscape is enabled,
the way the init script itself does?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Mathias Gug
Would a daily cron job be possible ?

An hourly cron job would put unnecessary strain on the archive. Update-
notifier and the apt update cron job are run on daily basis.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-16 Thread Andreas Hasenack
This fix is very important for Landscape. Landscape _will_not_work_
without it.

** Summary changed:

- landscape-client should have a cron job for updating smart package data
+ landscape-client must have a cron job for updating smart package data

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-18 Thread Andreas Hasenack
** Changed in: landscape-client (Ubuntu)
   Status: New => In Progress

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-19 Thread Mathias Gug
** Changed in: landscape-client (Ubuntu)
   Importance: Undecided => Critical

** Changed in: landscape-client (Ubuntu)
   Target: None => ubuntu-8.10-beta

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Steve Langasek
Hi Chris,

Given that landscape-client starts a daemon if enabled (/usr/bin
/landscape-client, launched from /etc/init.d/landscape-client), wouldn't
it be preferable to have landscape-client itself run this update
periodically, rather than having cron run it?

Alternatively, could you adjust this cron job to source /etc/default
/landscape-client, and only run the update when landscape is enabled,
the way the init script itself does?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Mathias Gug
Would a daily cron job be possible ?

An hourly cron job would put unnecessary strain on the archive. Update-
notifier and the apt update cron job are run on daily basis.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Andreas Hasenack
What about this for the cron job? It only runs if landscape-client is
enabled.

#!/bin/sh

[ -f "/etc/default/landscape-client" ] || exit 0

source /etc/default/landscape-client

[ "$RUN" -eq "1" ] && /usr/share/smart/smart update > /dev/null 2>&1

exit 0

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Launchpad Bug Tracker
This bug was fixed in the package landscape-client - 1.0.21-0ubuntu2

---
landscape-client (1.0.21-0ubuntu2) intrepid; urgency=low

  * debian/rules: Install an hourly cron job to update smart package data.
Thanks to Christopher Armstrong (LP: #268765).
  * debian/control:
- Move ${misc:Depends} to Depends.
- Add VCS-* headers.
  * debian/landscape-client.postrm:
- remove /etc/default/landscape-client when the package is purged.

 -- Mathias Gug <[EMAIL PROTECTED]>   Tue, 23 Sep 2008 18:19:26 -0400

** Changed in: landscape-client (Ubuntu)
   Status: In Progress => Fix Released

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Martin Pitt
Erm, isn't a hourly cronjob a bit exaggerated? Mirrors only update
daily, and the already existing cronjob for apt runs once a day.

Also, why can't smart use the already existing downloaded apt cache?
Eventually it just gets the Packages.gz files, we don't provide any
other index. Why does it need to download them a second time?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Andreas Hasenack
This hourly cronjob was debated yesterday on #ubuntu-devel. For now, we
are keeping it, specially because we changed it so it only runs when
landscape-client itself is running:

 niemeyer: the concern is to put too much load on the servers and 
mirrors
 mathiaz: I agree that if you're managing a bunch of workstations 
centrally, you want the average latency to be much lower than 12h
 mathiaz: Well, I agree.. it would consume less resources from the 
server
* warp10 has quit (Read error: 110 (Connection timed out))
 mathiaz: The question, though, is if it makes an important 
difference or not
 mathiaz: It does make a difference for Landscape usability
 mathiaz: If you're concerned about it, we can ask elmo about it
 niemeyer: the main raise I'm asking is that the default ubuntu 
install (with apt) doesn't update on a hourly basis.
 mathiaz: It's a slightly different use case I guess
 niemeyer: right - if it makes a difference for landscape usability 
than a hourly cron job is the best option
 mathiaz: We can always fire APT/Synaptic/whatever and get the 
current infomration
 mathiaz: For a server-side solution that's not so practical
* warp10_ is now known as warp10
 hmm, on-demand triggering of an update check isn't possible?
 slangasek: It is definitely possible, but it's a bad UI
* effie_jayx has quit (Remote closed the connection)
 ok.  I imagine it would be a suboptimal user experience regardless, 
due to the latency of checking
* seb128 has quit ("Ex-Chat")
 slangasek: Try to imagine something like "The information you're 
looking at is 20h old.  If you want to know the current updates, click on 
Update All Systems and come back in a few minutes."
 right :)
* seb128 ([EMAIL PROTECTED]/member/seb128) has joined #ubuntu-devel
 re (sorry, got some spontaneous guests)
 anyway, I'm certainly not arguing against the 1h cronjob

About smart using pkglist from apt, it may happen sometime in the
future, but not now. I can imagine a few people becoming concerned if
suddenly smart used apt's cache, or, as it would indeed happen, "smart
update" also updated apt's cache. It would have to go both ways.

And remember that smart works with more package resolvers/systems than
just apt/deb, so such a solution would probably be better if it were
generalized.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Christopher Armstrong
This only required packaging change, not upstream change, so marking
Invalid for landscape-client upstream

** Changed in: landscape-client
   Status: In Progress => Invalid

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Andreas Hasenack
What about this for the cron job? It only runs if landscape-client is
enabled.

#!/bin/sh

[ -f "/etc/default/landscape-client" ] || exit 0

source /etc/default/landscape-client

[ "$RUN" -eq "1" ] && /usr/share/smart/smart update > /dev/null 2>&1

exit 0

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Launchpad Bug Tracker
This bug was fixed in the package landscape-client - 1.0.21-0ubuntu2

---
landscape-client (1.0.21-0ubuntu2) intrepid; urgency=low

  * debian/rules: Install an hourly cron job to update smart package data.
Thanks to Christopher Armstrong (LP: #268765).
  * debian/control:
- Move ${misc:Depends} to Depends.
- Add VCS-* headers.
  * debian/landscape-client.postrm:
- remove /etc/default/landscape-client when the package is purged.

 -- Mathias Gug <[EMAIL PROTECTED]>   Tue, 23 Sep 2008 18:19:26 -0400

** Changed in: landscape-client (Ubuntu)
   Status: In Progress => Fix Released

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Martin Pitt
Erm, isn't a hourly cronjob a bit exaggerated? Mirrors only update
daily, and the already existing cronjob for apt runs once a day.

Also, why can't smart use the already existing downloaded apt cache?
Eventually it just gets the Packages.gz files, we don't provide any
other index. Why does it need to download them a second time?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Andreas Hasenack
This hourly cronjob was debated yesterday on #ubuntu-devel. For now, we
are keeping it, specially because we changed it so it only runs when
landscape-client itself is running:

 niemeyer: the concern is to put too much load on the servers and 
mirrors
 mathiaz: I agree that if you're managing a bunch of workstations 
centrally, you want the average latency to be much lower than 12h
 mathiaz: Well, I agree.. it would consume less resources from the 
server
* warp10 has quit (Read error: 110 (Connection timed out))
 mathiaz: The question, though, is if it makes an important 
difference or not
 mathiaz: It does make a difference for Landscape usability
 mathiaz: If you're concerned about it, we can ask elmo about it
 niemeyer: the main raise I'm asking is that the default ubuntu 
install (with apt) doesn't update on a hourly basis.
 mathiaz: It's a slightly different use case I guess
 niemeyer: right - if it makes a difference for landscape usability 
than a hourly cron job is the best option
 mathiaz: We can always fire APT/Synaptic/whatever and get the 
current infomration
 mathiaz: For a server-side solution that's not so practical
* warp10_ is now known as warp10
 hmm, on-demand triggering of an update check isn't possible?
 slangasek: It is definitely possible, but it's a bad UI
* effie_jayx has quit (Remote closed the connection)
 ok.  I imagine it would be a suboptimal user experience regardless, 
due to the latency of checking
* seb128 has quit ("Ex-Chat")
 slangasek: Try to imagine something like "The information you're 
looking at is 20h old.  If you want to know the current updates, click on 
Update All Systems and come back in a few minutes."
 right :)
* seb128 ([EMAIL PROTECTED]/member/seb128) has joined #ubuntu-devel
 re (sorry, got some spontaneous guests)
 anyway, I'm certainly not arguing against the 1h cronjob

About smart using pkglist from apt, it may happen sometime in the
future, but not now. I can imagine a few people becoming concerned if
suddenly smart used apt's cache, or, as it would indeed happen, "smart
update" also updated apt's cache. It would have to go both ways.

And remember that smart works with more package resolvers/systems than
just apt/deb, so such a solution would probably be better if it were
generalized.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Christopher Armstrong
This only required packaging change, not upstream change, so marking
Invalid for landscape-client upstream

** Changed in: landscape-client
   Status: In Progress => Invalid

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-16 Thread Andreas Hasenack
This fix is very important for Landscape. Landscape _will_not_work_
without it.

** Summary changed:

- landscape-client should have a cron job for updating smart package data
+ landscape-client must have a cron job for updating smart package data

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-18 Thread Andreas Hasenack
** Changed in: landscape-client (Ubuntu)
   Status: New => In Progress

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-19 Thread Mathias Gug
** Changed in: landscape-client (Ubuntu)
   Importance: Undecided => Critical

** Changed in: landscape-client (Ubuntu)
   Target: None => ubuntu-8.10-beta

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Steve Langasek
Hi Chris,

Given that landscape-client starts a daemon if enabled (/usr/bin
/landscape-client, launched from /etc/init.d/landscape-client), wouldn't
it be preferable to have landscape-client itself run this update
periodically, rather than having cron run it?

Alternatively, could you adjust this cron job to source /etc/default
/landscape-client, and only run the update when landscape is enabled,
the way the init script itself does?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-22 Thread Mathias Gug
Would a daily cron job be possible ?

An hourly cron job would put unnecessary strain on the archive. Update-
notifier and the apt update cron job are run on daily basis.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Andreas Hasenack
What about this for the cron job? It only runs if landscape-client is
enabled.

#!/bin/sh

[ -f "/etc/default/landscape-client" ] || exit 0

source /etc/default/landscape-client

[ "$RUN" -eq "1" ] && /usr/share/smart/smart update > /dev/null 2>&1

exit 0

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-23 Thread Launchpad Bug Tracker
This bug was fixed in the package landscape-client - 1.0.21-0ubuntu2

---
landscape-client (1.0.21-0ubuntu2) intrepid; urgency=low

  * debian/rules: Install an hourly cron job to update smart package data.
Thanks to Christopher Armstrong (LP: #268765).
  * debian/control:
- Move ${misc:Depends} to Depends.
- Add VCS-* headers.
  * debian/landscape-client.postrm:
- remove /etc/default/landscape-client when the package is purged.

 -- Mathias Gug <[EMAIL PROTECTED]>   Tue, 23 Sep 2008 18:19:26 -0400

** Changed in: landscape-client (Ubuntu)
   Status: In Progress => Fix Released

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Martin Pitt
Erm, isn't a hourly cronjob a bit exaggerated? Mirrors only update
daily, and the already existing cronjob for apt runs once a day.

Also, why can't smart use the already existing downloaded apt cache?
Eventually it just gets the Packages.gz files, we don't provide any
other index. Why does it need to download them a second time?

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Andreas Hasenack
This hourly cronjob was debated yesterday on #ubuntu-devel. For now, we
are keeping it, specially because we changed it so it only runs when
landscape-client itself is running:

 niemeyer: the concern is to put too much load on the servers and 
mirrors
 mathiaz: I agree that if you're managing a bunch of workstations 
centrally, you want the average latency to be much lower than 12h
 mathiaz: Well, I agree.. it would consume less resources from the 
server
* warp10 has quit (Read error: 110 (Connection timed out))
 mathiaz: The question, though, is if it makes an important 
difference or not
 mathiaz: It does make a difference for Landscape usability
 mathiaz: If you're concerned about it, we can ask elmo about it
 niemeyer: the main raise I'm asking is that the default ubuntu 
install (with apt) doesn't update on a hourly basis.
 mathiaz: It's a slightly different use case I guess
 niemeyer: right - if it makes a difference for landscape usability 
than a hourly cron job is the best option
 mathiaz: We can always fire APT/Synaptic/whatever and get the 
current infomration
 mathiaz: For a server-side solution that's not so practical
* warp10_ is now known as warp10
 hmm, on-demand triggering of an update check isn't possible?
 slangasek: It is definitely possible, but it's a bad UI
* effie_jayx has quit (Remote closed the connection)
 ok.  I imagine it would be a suboptimal user experience regardless, 
due to the latency of checking
* seb128 has quit ("Ex-Chat")
 slangasek: Try to imagine something like "The information you're 
looking at is 20h old.  If you want to know the current updates, click on 
Update All Systems and come back in a few minutes."
 right :)
* seb128 ([EMAIL PROTECTED]/member/seb128) has joined #ubuntu-devel
 re (sorry, got some spontaneous guests)
 anyway, I'm certainly not arguing against the 1h cronjob

About smart using pkglist from apt, it may happen sometime in the
future, but not now. I can imagine a few people becoming concerned if
suddenly smart used apt's cache, or, as it would indeed happen, "smart
update" also updated apt's cache. It would have to go both ways.

And remember that smart works with more package resolvers/systems than
just apt/deb, so such a solution would probably be better if it were
generalized.

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 268765] Re: landscape-client must have a cron job for updating smart package data

2008-09-24 Thread Christopher Armstrong
This only required packaging change, not upstream change, so marking
Invalid for landscape-client upstream

** Changed in: landscape-client
   Status: In Progress => Invalid

-- 
landscape-client must have a cron job for updating smart package data
https://bugs.launchpad.net/bugs/268765
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs