summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNagy Gabor <ngaba@bibl.u-szeged.hu>2008-03-03 22:09:21 +0100
committerDan McGee <dan@archlinux.org>2008-03-11 01:16:01 +0100
commit35135c0a0cbac592e72296c0ca64e9def0308942 (patch)
tree8ec7fecabc1f17ba2a7cfd514b640c4afeaafa26 /lib
parentd060e31be3586ce27382f80eaed7a9edf2c86aeb (diff)
downloadpacman-35135c0a0cbac592e72296c0ca64e9def0308942.tar.gz
pacman-35135c0a0cbac592e72296c0ca64e9def0308942.tar.xz
Add -Rss option
* -Rss removes all dependencies (including explicitly installed ones). * updated documentation * two pactest files added to test the difference between -Rs and -Rss Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/alpm.h3
-rw-r--r--lib/libalpm/remove.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 8e8446a2..b5294b90 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -280,7 +280,8 @@ typedef enum _pmtransflag_t {
PM_TRANS_FLAG_PRINTURIS = 0x1000,
PM_TRANS_FLAG_NEEDED = 0x2000,
PM_TRANS_FLAG_ALLEXPLICIT = 0x4000,
- PM_TRANS_FLAG_UNNEEDED = 0x8000
+ PM_TRANS_FLAG_UNNEEDED = 0x8000,
+ PM_TRANS_FLAG_RECURSEALL = 0x10000
} pmtransflag_t;
/* Transaction Events */
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index b6ed115a..c04dab69 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -165,7 +165,7 @@ int _alpm_remove_prepare(pmtrans_t *trans, pmdb_t *db, alpm_list_t **data)
if(trans->flags & PM_TRANS_FLAG_RECURSE) {
_alpm_log(PM_LOG_DEBUG, "finding removable dependencies\n");
- _alpm_recursedeps(db, trans->packages, 0);
+ _alpm_recursedeps(db, trans->packages, trans->flags & PM_TRANS_FLAG_RECURSEALL);
}
if(!(trans->flags & PM_TRANS_FLAG_NODEPS)) {