Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-09-20 02:18:11 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-09-20 02:18:11 (GMT)
commitc423be6437a88af6f795fbfdfd305241bf1f1a90 (patch)
tree396d29780da8039e9d15e973dc3e43eb400c6f48
parent750bd01dd00af01d3f68df43882a09d837d337a3 (diff)
Consider sweets-sugar as a basis package while presolving dependency trees
-rwxr-xr-xsugar-network7
-rw-r--r--sugar_network/node/obs.py2
-rwxr-xr-xtests/units/node/obs.py4
3 files changed, 8 insertions, 5 deletions
diff --git a/sugar-network b/sugar-network
index 8f07434..4fdf588 100755
--- a/sugar-network
+++ b/sugar-network
@@ -323,8 +323,11 @@ class Application(application.Application):
def porcelain_dump(value):
if type(value) is dict:
- for i in sorted(value.items()):
- print '%-18s%s' % i
+ if len(value) == 1 and 'guid' in value:
+ porcelain_dump(value['guid'])
+ else:
+ for i in sorted(value.items()):
+ print '%-18s%s' % i
else:
if type(value) not in (list, tuple):
value = [value]
diff --git a/sugar_network/node/obs.py b/sugar_network/node/obs.py
index 18400dc..1d8a547 100644
--- a/sugar_network/node/obs.py
+++ b/sugar_network/node/obs.py
@@ -75,7 +75,7 @@ def presolve(aliases, dst_path):
'arch': arch,
'package': package,
'withdeps': '1',
- 'exclude': 'sugar',
+ 'exclude': 'sweets-sugar',
})
binaries = []
for pkg in response.findall('binary'):
diff --git a/tests/units/node/obs.py b/tests/units/node/obs.py
index fef1b1d..bf43ed6 100755
--- a/tests/units/node/obs.py
+++ b/tests/units/node/obs.py
@@ -93,7 +93,7 @@ class ObsTest(tests.Test):
'arch': 'i586',
'package': 'pkg1',
'withdeps': '1',
- 'exclude': 'sugar',
+ 'exclude': 'sweets-sugar',
}},
[ '<resolve>',
' <binary name="pkg1-1" url="http://pkg1-1.prm" arch="arch"/>',
@@ -108,7 +108,7 @@ class ObsTest(tests.Test):
'arch': 'i586',
'package': 'pkg2',
'withdeps': '1',
- 'exclude': 'sugar',
+ 'exclude': 'sweets-sugar',
}},
[ '<resolve>',
' <binary name="pkg2-1" url="http://pkg2-1.prm" arch="arch"/>',