Turn on package notification for adopted packages (FS#10480)

-- 
Andrea
From 7c1125184552bce74b502151f8ce8ff71e780e56 Mon Sep 17 00:00:00 2001
From: Andrea Scarpino <and...@archlinux.org>
Date: Wed, 10 Mar 2010 22:42:36 +0100
Subject: [PATCH] Turn on package notification for adopted packages

---
 web/lib/pkgfuncs.inc |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index a4a2dfc..9a52beb 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -778,6 +778,7 @@ function pkg_adopt ($atype, $ids, $action = True) {
 	db_query($q, $dbh);
 
 	if ($action) {
+		pkg_notify(account_from_sid($_COOKIE["AURSID"]), $ids);
 		return __("The selected packages have been adopted.");
 	} else {
 		return __("The selected packages have been disowned.");
-- 
1.7.0.2

Reply via email to