LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-21-2010, 05:04 PM   #1
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
There is ... updates. <- what package is this line in Kde 4?


The new install with KDE 4 notifies me when there are updates available in the repository.
Code:
 There is 24 updates.
[sic]
Which program/package is responsible for these update messages?
 
Old 07-21-2010, 05:09 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,610

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
maybe update-notifier? it would help if you said where you saw it
 
Old 07-21-2010, 05:10 PM   #3
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I believe it is update-notifier-kde, but I could be mistaken.
 
Old 07-23-2010, 07:42 AM   #4
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Original Poster
Rep: Reputation: 30
It appears in the KDE 4 in the system tray. I wasn't sure if it was KDE specific.

I found it in the update-notifier-kde (which comes from the source kingston-update notifier (?)).
Code:
find . | xargs grep -i "There is .* updates"
./src/notifier.cpp:      show_update_notification( "It is recommended to update your system", QString("There is %1 updates available").arg(updates), "dialog-information");
./src/notifier.cpp:        show_update_notification( "You should update your system", QString("There is %1 security updates available").arg(security_updates), "dialog-warning");
./src/notifier.cpp:        show_update_notification( "You should update your system", QString("There is %1 updates and %2 security updates available").arg(updates).arg(security_updates), "dialog-warning" );
Any recommendations on how to modify this to differentiate between 1 and more than 1?

Something like:
Code:
void notifier_t::notify_new_updates(int updates, int security_updates) {
  if(updates==0 && security_updates==0) {
    //do nothing, I guess
  } else {
    QPixmap px;
    if(security_updates==0) {
        if(updates==1) {
                show_update_notification( "It is recommended to update your system", QString("There is %1 update available").arg(updates), "dialog-information");
        } else { 
                show_update_notification( "It is recommended to update your system", QString("There are %1 updates available").arg(updates), "dialog-information");
        }
    } else {
      if(updates==0) {
        if security_updates==1) {
                show_update_notification( "You should update your system", QString("There is %1 security update available").arg(security_updates), "dialog-warning");
        } else { show_update_notification( "You should update your system", QString("There are %1 security updates available").arg(security_updates), "dialog-warning");
        }
      } else {
        show_update_notification( "You should update your system", QString("There is %1 updates and %2 security updates available").arg(updates).arg(security_updates), "dialog-warning" );
      }
    }
  }
}

There's a bug report and a patch now: http://bugs.debian.org/cgi-bin/bugre...ved=no&mbox=no

However, I can't find the official patch or the new and improved version of notifier.cpp.

Last edited by donnied; 07-23-2010 at 08:20 AM.
 
Old 07-23-2010, 08:40 AM   #5
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Original Poster
Rep: Reputation: 30
How do I get the git package for the new and improved version?
I don't know which git repository or branch I should use.
He mentioned the committed fix was here:
http://git.debian.org/?p=pkg-kde/kin...2eb5a89c47657e

I've tried building myself but I can't find a way to fix
Code:
 Unknown CMake command "kde4_add_executable".
.
 
  


Reply

Tags
debian, kde4, update


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
Off-line Fedora updates backvan Fedora 1 07-06-2009 05:24 PM
Package updates Kairon Slackware 5 09-30-2006 03:47 PM
I have problems with on-line updates rosco136 Linux - Software 1 07-11-2005 03:54 AM
Distro package updates/iso's Vesical Fedora 1 07-01-2004 07:13 AM


All times are GMT -5. The time now is 11:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration