commit scout for openSUSE:Factory
Hello community, here is the log from the commit of package scout for openSUSE:Factory checked in at Wed Apr 28 23:11:45 CEST 2010. -------- --- scout/scout.changes 2010-03-15 14:33:46.000000000 +0100 +++ scout/scout.changes 2010-04-28 16:38:49.000000000 +0200 @@ -1,0 +2,8 @@ +Wed Apr 28 16:37:58 CEST 2010 - prusnak@suse.cz + +- also check the file name, not only the package name while testing + whether the package is installed +- add TEXTDOMAINDIR +- fix localization of one msg + +------------------------------------------------------------------- calling whatdependson for head-i586 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ scout.spec ++++++ --- /var/tmp/diff_new_pack.hzqB5H/_old 2010-04-28 23:09:57.000000000 +0200 +++ /var/tmp/diff_new_pack.hzqB5H/_new 2010-04-28 23:09:57.000000000 +0200 @@ -20,7 +20,7 @@ Name: scout Version: 0.1.0 -Release: 34 +Release: 35 Url: http://en.opensuse.org/Scout License: MIT Group: System/Packages @@ -82,7 +82,7 @@ %package -n command-not-found Version: 0.1.0 -Release: 41 +Release: 42 License: MIT Group: System/Packages Summary: Command Not Found extension for shell ++++++ scout.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scout/handlers/bin/command-not-found new/scout/handlers/bin/command-not-found --- old/scout/handlers/bin/command-not-found 2009-08-18 14:41:38.000000000 +0200 +++ new/scout/handlers/bin/command-not-found 2010-03-24 16:11:43.000000000 +0100 @@ -36,9 +36,11 @@ print >> sys.stderr sys.exit(EX_NOTFOUND) -def check_installed(term): +def check_installed(term, pkg, path): + if not os.path.isfile('%s/%s' % (path, term)): + return False ts = rpm.TransactionSet() - mi = ts.dbMatch('name', term) + mi = ts.dbMatch('name', pkg) return mi.count() > 0 def find_package_by_file(term): @@ -95,7 +97,7 @@ print >> sys.stderr, '\r', lendel*' ', for row in rows: - if check_installed(row[1]): + if check_installed(term, row[1], row[2]): print_installed(term, row[1], row[2]) print_found(rows) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scout/handlers/bin/command_not_found_bash new/scout/handlers/bin/command_not_found_bash --- old/scout/handlers/bin/command_not_found_bash 2009-09-09 16:22:47.000000000 +0200 +++ new/scout/handlers/bin/command_not_found_bash 2010-04-28 16:32:57.000000000 +0200 @@ -1,5 +1,6 @@ command_not_found_handle() { + export TEXTDOMAINDIR=/usr/share/locale export TEXTDOMAIN=command-not-found local cmd state rest @@ -30,7 +31,8 @@ test -x /usr/bin/python && test -x /usr/bin/command-not-found && /usr/bin/python /usr/bin/command-not-found "$1" __REPO__ else # print only info about command-not-found - echo -e $"If '$1' is not a typo you can use command-not-found to lookup the package that contains it, like this:\n cnf $1" + echo -e $"If '$1' is not a typo you can use command-not-found to lookup the package that contains it, like this: + cnf $1" fi return 127 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/scout/i18n/command-not-found/cs.po new/scout/i18n/command-not-found/cs.po --- old/scout/i18n/command-not-found/cs.po 2009-09-25 15:48:17.000000000 +0200 +++ new/scout/i18n/command-not-found/cs.po 2010-04-28 16:33:29.000000000 +0200 @@ -28,7 +28,7 @@ #: handlers/bin/command_not_found_bash:32 msgid "If '$1' is not a typo you can use command-not-found to lookup the package that contains it, like this:\n cnf $1" -msgstr "Když '$1' není překlep, je môžno použít command-not-found, aby nalezl balíček, který ho obsahuje. Například takto:\n cnf $1" +msgstr "Když '$1' není překlep, je možno použít command-not-found, aby nalezl balíček, který ho obsahuje. Například takto:\n cnf $1" #: handlers/bin/command-not-found:8 #, python-format ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de